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

Side by Side 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: Adding unit tests. 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 <!DOCTYPE html>
2 <!-- printf() style params:
3 embedder_origin: Origin of the page embedding this HTML as an iframe.
4 omnibox_font: Omnibox font - used to display suggestions.
5 omnibox_font_size: Omnibox font size - used as suggestion font size.
6 url_color: Color used to display URL component of suggestion.
7 title_color: Color used to display title component of suggestion.
8 url_text: URL component of the suggestion.
9 title_text: Title component of the suggestion.
10 -->
11 <html>
12 <head>
13 <script>
14 function handleClick(event) {
15 var details = {
16 'eventType': 'click',
17 'button' : event.button
18 };
19 top.postMessage(details, '%s');
20 }
21 function handleLoad() {
22 if (document.getElementById('title').innerHTML == "")
23 document.getElementById('optional').classList.add('hide');
24 }
25 </script>
26 <style>
27 body {
28 -webkit-user-select: none;
29 cursor: default;
30 font: %s;
31 font-size: %lupx;
32 margin: 0;
33 overflow: hidden;
34 position: fixed;
35 white-space: nowrap;
36 }
37 .url { color: #%06X; }
38 .title { color: #%06X; }
39 .hide { display: none; }
40 </style>
41 </head>
42 <body onclick="handleClick(event);" onload="handleLoad();">
43 <span class="url">%s</span>
44 <span class="title" id="optional"> &ndash; <span id="title">%s</span></span>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698