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

Unified Diff: chrome/renderer/resources/omnibox_result.html

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual 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/renderer/resources/omnibox_result.html
diff --git a/chrome/renderer/resources/omnibox_result.html b/chrome/renderer/resources/omnibox_result.html
deleted file mode 100644
index 87fb25d8b979ba8e7167a3b32b8e7f672e7b8ab8..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/omnibox_result.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!-- printf() style params:
- embedder_origin: Origin of the page embedding this HTML as an iframe.
- omnibox_font: Omnibox font - used to display suggestions.
- omnibox_font_size: Omnibox font size - used as suggestion font size.
- url_color: Color used to display URL component of suggestion.
- title_color: Color used to display title component of suggestion.
- url_text: URL component of the suggestion.
- title_text: Title component of the suggestion.
--->
-<html>
-<head>
-<script>
-function handleClick(event) {
- var details = {
- 'eventType': 'click',
- 'button' : event.button
- };
- top.postMessage(details, '%s');
-}
-function handleLoad() {
- if (document.getElementById('title').innerHTML == "")
- document.getElementById('optional').classList.add('hide');
-}
-</script>
-<style>
-body {
- -webkit-user-select: none;
- cursor: default;
- font: %s;
- font-size: %lupx;
- margin: 0;
- overflow: hidden;
- position: fixed;
- white-space: nowrap;
-}
-.url { color: #%06X; }
-.title { color: #%06X; }
-.hide { display: none; }
-</style>
-</head>
-<body onclick="handleClick(event);" onload="handleLoad();">
- <span class="url">%s</span>
- <span class="title" id="optional"> &ndash; <span id="title">%s</span></span>
-</body>
-</html>
« no previous file with comments | « chrome/renderer/resources/extensions/searchbox_api.js ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698