add zomm tests
This commit is contained in:
parent
ccb3c64425
commit
13eba7574c
3 changed files with 28 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
import {
|
||||
TABS_CREATE, TABS_SELECT_AT,
|
||||
TABS_CREATE, TABS_SELECT_AT, TABS_GET_ZOOM, TABS_SET_ZOOM,
|
||||
} from '../shared/messages';
|
||||
import * as ipc from './ipc';
|
||||
|
||||
|
@ -19,4 +19,19 @@ const selectAt = (windowId, index) => {
|
|||
});
|
||||
};
|
||||
|
||||
export { create, selectAt };
|
||||
const getZoom = (tabId) => {
|
||||
return ipc.send({
|
||||
tabId,
|
||||
type: TABS_GET_ZOOM,
|
||||
});
|
||||
};
|
||||
|
||||
const setZoom = (tabId, factor) => {
|
||||
return ipc.send({
|
||||
type: TABS_SET_ZOOM,
|
||||
tabId,
|
||||
factor,
|
||||
});
|
||||
};
|
||||
|
||||
export { create, selectAt, getZoom, setZoom };
|
||||
|
|
Reference in a new issue