Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/resources/omnibox_result.js

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include missing file. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698