add scroll test

This commit is contained in:
Shin'ya Ueoka 2018-02-14 21:11:03 +09:00
parent f63920e25e
commit b694afb7ce
6 changed files with 133 additions and 18 deletions

View file

@ -0,0 +1,20 @@
import { SCROLL_GET, SCROLL_SET } from '../shared/messages';
import * as ipc from './ipc';
const get = (tabId) => {
return ipc.send({
type: SCROLL_GET,
tabId,
});
};
const set = (tabId, x, y) => {
return ipc.send({
type: SCROLL_SET,
tabId,
x,
y,
});
};
export { get, set };