aboutsummaryrefslogtreecommitdiff
path: root/src/background/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 20:08:17 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 20:08:17 +0900
commit6213f55e22f79eb8b7572a619e0fc68047c0631e (patch)
treeca4db6739528100a6dd965700fc7ffc707f22a74 /src/background/index.js
parenteec79730606ab3b49529d8063c6646d6309d8084 (diff)
parentcb36fc666cb2615f911bc855bc91249d167f0dba (diff)
Merge branch 'some-features'
Diffstat (limited to 'src/background/index.js')
-rw-r--r--src/background/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/background/index.js b/src/background/index.js
index f3bd65a..f1a7217 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -1,6 +1,7 @@
import * as actions from '../shared/actions';
import * as tabs from './tabs';
import * as commands from './commands';
+import * as zooms from './zooms';
import KeyQueue from './key-queue';
const queue = new KeyQueue();
@@ -38,6 +39,18 @@ const doBackgroundAction = (sender, action) => {
case actions.TABS_NEXT:
tabs.selectNextTab(sender.tab.index, actions[1] || 1);
break;
+ case actions.TABS_RELOAD:
+ tabs.reload(sender.tab, actions[1] || false);
+ break;
+ case actions.ZOOM_IN:
+ zooms.zoomIn();
+ break;
+ case actions.ZOOM_OUT:
+ zooms.zoomOut();
+ break;
+ case actions.ZOOM_NEUTRAL:
+ zooms.neutral();
+ break;
}
}