forked from ilanasegall/heatmap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split out window events into window/tab and chrome
- Loading branch information
1 parent
179610c
commit 12390f7
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"use strict"; | ||
//chrome events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
"use strict"; | ||
|
||
//open/activate | ||
//chrome events; event handlers | ||
//in content? | ||
|
||
const {emit} = require("./utils"); | ||
|
||
var newWinFun = { | ||
onTrack: function (window) { | ||
emit("Tracking a window: " + window.location, + ", " + window.id); | ||
}, | ||
onUntrack: function (window) { | ||
emit("Untracking a window: " + window.location); | ||
} | ||
}; | ||
|
||
var tabs = require("sdk/tabs"); | ||
|
||
tabs.on('open', function onOpen(tab) { | ||
emit("Tab opened: " + tab.id) | ||
}); | ||
//all tabs events | ||
|
||
//note actions that are being pushed directly | ||
|
||
|
||
|
||
let chromeEvents = function(){ | ||
|
||
} | ||
|
||
let windowEventTracker = function(){ | ||
var winUtils = require("window-utils"); | ||
var tracker = new winUtils.WindowTracker(newWinFun); | ||
}(); | ||
|
||
let tabEventTracker = function(){ | ||
|
||
|
||
}(); | ||
|
||
//isbrowser()? --> jetpack | ||
|
||
|
||
//pump out onto a channel and recording into instrument options | ||
//require unload; remove contextMenuTracker etc | ||
|
||
|
||
|
||
//window vs chrome |