| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |