OLD | NEW |
---|---|
(Empty) | |
1 /** | |
2 * @fileoverview Click handler for omnibox results. | |
3 */ | |
4 | |
5 /** | |
6 * The origin of the embedding page. | |
7 * Must be in double quotes for proper escaping. | |
8 * @type {string} | |
9 * @const | |
10 */ | |
11 var EMBEDDER_ORIGIN = "%s"; | |
12 | |
13 function handleClick(event) { | |
14 var clickMessage = {'click': event.button}; | |
15 top.postMessage(clickMessage, EMBEDDER_ORIGIN); | |
16 } | |
17 | |
18 document.addEventListener('DOMContentLoaded', function() { | |
19 window.addEventListener('click', handleClick, false); | |
samarth
2013/04/02 23:26:58
Strictly speaking you shouldn't need to wait for D
Jered
2013/04/03 18:49:33
Ack.
| |
20 }); | |
OLD | NEW |