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

Side by Side Diff: chrome/common/extensions/docs/examples/api/fontSettings/js/util.js

Issue 11227018: Font Settings API: UI overhaul of example extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update version and description string Created 8 years, 2 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 /** 5 /**
6 * The global object. 6 * The global object.
7 * @type {!Object} 7 * @type {!Object}
8 * @const 8 * @const
9 */ 9 */
10 var global = this; 10 var global = this;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 * Creates a new URL for a favicon request. 231 * Creates a new URL for a favicon request.
232 * @param {string} url The url for the favicon. 232 * @param {string} url The url for the favicon.
233 * @param {number=} opt_size Optional preferred size of the favicon. 233 * @param {number=} opt_size Optional preferred size of the favicon.
234 * @return {string} Updated URL for the favicon. 234 * @return {string} Updated URL for the favicon.
235 */ 235 */
236 function getFaviconURL(url, opt_size) { 236 function getFaviconURL(url, opt_size) {
237 var size = opt_size || 16; 237 var size = opt_size || 16;
238 return 'chrome://favicon/size/' + size + '@' + 238 return 'chrome://favicon/size/' + size + '@' +
239 window.devicePixelRatio + 'x/' + url; 239 window.devicePixelRatio + 'x/' + url;
240 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698