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

Side by Side Diff: chrome/renderer/resources/extensions/searchbox_api.js

Issue 12732005: Most visited thumbnails and favicons need id-based urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address estade's comments. Created 7 years, 9 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 var chrome; 5 var chrome;
6 if (!chrome) 6 if (!chrome)
7 chrome = {}; 7 chrome = {};
8 8
9 if (!chrome.embeddedSearch) { 9 if (!chrome.embeddedSearch) {
10 chrome.embeddedSearch = new function() { 10 chrome.embeddedSearch = new function() {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 return mostVisitedItems; 324 return mostVisitedItems;
325 } 325 }
326 326
327 // ======================================================================= 327 // =======================================================================
328 // Exported functions 328 // Exported functions
329 // ======================================================================= 329 // =======================================================================
330 this.__defineGetter__('mostVisited', GetMostVisitedItemsWrapper); 330 this.__defineGetter__('mostVisited', GetMostVisitedItemsWrapper);
331 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); 331 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
332 332
333 this.deleteMostVisitedItem = function(restrictId) { 333 this.deleteMostVisitedItem = function(restrictedId) {
334 DeleteMostVisitedItem(restrictId); 334 DeleteMostVisitedItem(restrictedId);
335 }; 335 };
336 this.undoAllMostVisitedDeletions = function() { 336 this.undoAllMostVisitedDeletions = function() {
337 UndoAllMostVisitedDeletions(); 337 UndoAllMostVisitedDeletions();
338 }; 338 };
339 this.undoMostVisitedDeletion = function(restrictId) { 339 this.undoMostVisitedDeletion = function(restrictedId) {
340 UndoMostVisitedDeletion(restrictId); 340 UndoMostVisitedDeletion(restrictedId);
341 }; 341 };
342 this.navigateContentWindow = function(destination, disposition) { 342 this.navigateContentWindow = function(destination, disposition) {
343 NavigateNewTabPage(destination, disposition); 343 NavigateNewTabPage(destination, disposition);
344 } 344 }
345 345
346 this.onmostvisitedchange = null; 346 this.onmostvisitedchange = null;
347 this.onthemechange = null; 347 this.onthemechange = null;
348 }; 348 };
349 349
350 // Export legacy searchbox API. 350 // Export legacy searchbox API.
351 // TODO: Remove this when Instant Extended is fully launched. 351 // TODO: Remove this when Instant Extended is fully launched.
352 chrome.searchBox = this.searchBox; 352 chrome.searchBox = this.searchBox;
353 }; 353 };
354 } 354 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698