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

Side by Side Diff: chrome/browser/resources/options/home_page_overlay.js

Issue 11762004: Make favicons for about:history and about:bookmarks switch from lodpi to hidpi when dragging browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 /** @const */ var SettingsDialog = options.SettingsDialog; 7 /** @const */ var SettingsDialog = options.SettingsDialog;
8 8
9 /** 9 /**
10 * HomePageOverlay class 10 * HomePageOverlay class
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 urlFieldIndicator.readOnly = event.value.value; 92 urlFieldIndicator.readOnly = event.value.value;
93 }, 93 },
94 94
95 /** 95 /**
96 * Updates the background of the url field to show the favicon for the 96 * Updates the background of the url field to show the favicon for the
97 * URL that is currently typed in. 97 * URL that is currently typed in.
98 * @private 98 * @private
99 */ 99 */
100 updateFavicon_: function() { 100 updateFavicon_: function() {
101 var urlField = $('homepage-url-field'); 101 var urlField = $('homepage-url-field');
102 urlField.style.backgroundImage = url(getFaviconUrl(urlField.value)); 102 urlField.style.backgroundImage = getFaviconImageSet(urlField.value);
103 }, 103 },
104 104
105 /** 105 /**
106 * Sends an asynchronous request for new autocompletion suggestions for the 106 * Sends an asynchronous request for new autocompletion suggestions for the
107 * the given query. When new suggestions are available, the C++ handler will 107 * the given query. When new suggestions are available, the C++ handler will
108 * call updateAutocompleteSuggestions_. 108 * call updateAutocompleteSuggestions_.
109 * @param {string} query List of autocomplete suggestions. 109 * @param {string} query List of autocomplete suggestions.
110 * @private 110 * @private
111 */ 111 */
112 requestAutocompleteSuggestions_: function(query) { 112 requestAutocompleteSuggestions_: function(query) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 HomePageOverlay.updateAutocompleteSuggestions = function() { 152 HomePageOverlay.updateAutocompleteSuggestions = function() {
153 var instance = HomePageOverlay.getInstance(); 153 var instance = HomePageOverlay.getInstance();
154 instance.updateAutocompleteSuggestions_.apply(instance, arguments); 154 instance.updateAutocompleteSuggestions_.apply(instance, arguments);
155 }; 155 };
156 156
157 // Export 157 // Export
158 return { 158 return {
159 HomePageOverlay: HomePageOverlay 159 HomePageOverlay: HomePageOverlay
160 }; 160 };
161 }); 161 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698