aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/content/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-06 21:48:16 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-04-06 22:39:40 +0900
commitb04eecce7fea8b262411a5817924dc730cbe127a (patch)
tree024c14ce52319af899938ce81ee7107540ccbf7b /e2e/ambassador/src/content/index.js
parentc9a0bf87d0ba81beb1b958c374a40c4b69f4192b (diff)
Replace e2e with lanthan
Diffstat (limited to 'e2e/ambassador/src/content/index.js')
-rw-r--r--e2e/ambassador/src/content/index.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/e2e/ambassador/src/content/index.js b/e2e/ambassador/src/content/index.js
deleted file mode 100644
index fd19136..0000000
--- a/e2e/ambassador/src/content/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import {
- EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP,
- SCROLL_GET, SCROLL_SET,
-} from '../shared/messages';
-import * as ipc from './ipc';
-import * as events from './events';
-import * as scrolls from './scrolls';
-
-ipc.receivePageMessage((message) => {
- return ipc.sendToBackground(message);
-});
-
-ipc.receiveBackgroundMesssage((message) => {
- switch (message.type) {
- case EVENT_KEYPRESS:
- events.keypress(message);
- break;
- case EVENT_KEYDOWN:
- events.keydown(message);
- break;
- case EVENT_KEYUP:
- events.keyup(message);
- break;
- case SCROLL_GET:
- return Promise.resolve(scrolls.get());
- case SCROLL_SET:
- return Promise.resolve(scrolls.set(message.x, message.y));
- }
- return Promise.resolve({});
-});