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

Unified 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: Addressing comments. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/omnibox_result.js
diff --git a/chrome/browser/resources/omnibox_result.js b/chrome/browser/resources/omnibox_result.js
new file mode 100644
index 0000000000000000000000000000000000000000..a47b4033b838ba8bce11be917edffa5521861f31
--- /dev/null
+++ b/chrome/browser/resources/omnibox_result.js
@@ -0,0 +1,21 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Click handler for omnibox results.
+ */
+
+(function() {
+/**
+ * The origin of the embedding page.
+ * This string literal must be in double quotes for proper escaping.
+ * @type {string}
+ * @const
+ */
+var EMBEDDER_ORIGIN = "%s";
+
+window.addEventListener('click', function(event) {
+ top.postMessage({click: event.button}, EMBEDDER_ORIGIN);
+});
+})();

Powered by Google App Engine
This is Rietveld 408576698