aboutsummaryrefslogtreecommitdiff
path: root/src/background/domains/global-mark.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 10:14:33 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 10:14:33 +0900
commit003742ec51aa7aea9214442bc0b611e2eb5eaf6e (patch)
tree20345e48bd226c1e83a1145721f7ba585a1452aa /src/background/domains/global-mark.js
parent6e6e306275a8ee5632a22b1e30c807bd5ae9cc7e (diff)
Support global marks which select a tab
Diffstat (limited to 'src/background/domains/global-mark.js')
-rw-r--r--src/background/domains/global-mark.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/background/domains/global-mark.js b/src/background/domains/global-mark.js
new file mode 100644
index 0000000..77afdba
--- /dev/null
+++ b/src/background/domains/global-mark.js
@@ -0,0 +1,19 @@
+export default class GlobalMark {
+ constructor(tabId, x, y) {
+ this.tabId0 = tabId;
+ this.x0 = x;
+ this.y0 = y;
+ }
+
+ get tabId() {
+ return this.tabId0;
+ }
+
+ get x() {
+ return this.x0;
+ }
+
+ get y() {
+ return this.y0;
+ }
+}