From a61f37ad61da8766bf74d5a8b26e53390cb5b6c9 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 13 Sep 2017 21:55:09 +0900 Subject: content operations --- src/actions/index.js | 9 --------- src/actions/operation.js | 5 ++++- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src/actions') diff --git a/src/actions/index.js b/src/actions/index.js index ae29238..754b7f0 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -12,15 +12,6 @@ export default { CMD_OPEN: 'cmd.open', CMD_TABS_OPEN: 'cmd.tabs.open', CMD_BUFFER: 'cmd.buffer', - SCROLL_LINES: 'scroll.lines', - SCROLL_PAGES: 'scroll.pages', - SCROLL_TOP: 'scroll.top', - SCROLL_BOTTOM: 'scroll.bottom', - SCROLL_LEFT: 'scroll.left', - SCROLL_RIGHT: 'scroll.right', - FOLLOW_START: 'follow.start', - HISTORY_PREV: 'history.prev', - HISTORY_NEXT: 'history.next', // User input INPUT_KEY_PRESS: 'input.key,press', diff --git a/src/actions/operation.js b/src/actions/operation.js index 4106076..352bfac 100644 --- a/src/actions/operation.js +++ b/src/actions/operation.js @@ -21,7 +21,10 @@ export function exec(operation, sender) { case operations.ZOOM_NEUTRAL: return zooms.neutral(); default: - return Promise.resolve(); + return browser.tabs.sendMessage(sender.tab.id, { + type: 'require.content.operation', + operation + }); } } -- cgit v1.2.3