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

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

Issue 11644009: Added support for passing WindowOpenDisposition into BrowserInstantController::OpenURL() from the o… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 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 if (!chrome.embeddedSearch) { 8 if (!chrome.embeddedSearch) {
9 chrome.embeddedSearch = new function() { 9 chrome.embeddedSearch = new function() {
10 native function NavigateContentWindow(); 10 native function NavigateContentWindow();
11 11
12 this.navigateContentWindow = function(destination) { 12 this.navigateContentWindow = function(destination, disposition) {
13 return NavigateContentWindow(destination); 13 return NavigateContentWindow(destination, disposition);
14 }; 14 };
15 }; 15 };
16 16
17 chrome.embeddedSearch.searchBox = new function() { 17 chrome.embeddedSearch.searchBox = new function() {
18 var safeObjects = {}; 18 var safeObjects = {};
19 chrome.embeddedSearchOnWindowReady = function() { 19 chrome.embeddedSearchOnWindowReady = function() {
20 // |embeddedSearchOnWindowReady| is used for initializing window context 20 // |embeddedSearchOnWindowReady| is used for initializing window context
21 // and should be called only once per context. 21 // and should be called only once per context.
22 safeObjects.createShadowRoot = Element.prototype.webkitCreateShadowRoot; 22 safeObjects.createShadowRoot = Element.prototype.webkitCreateShadowRoot;
23 safeObjects.defineProperty = Object.defineProperty; 23 safeObjects.defineProperty = Object.defineProperty;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); 272 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
273 273
274 this.onthemechange = null; 274 this.onthemechange = null;
275 }; 275 };
276 276
277 // Export legacy searchbox API. 277 // Export legacy searchbox API.
278 // TODO: Remove this when Instant Extended is fully launched. 278 // TODO: Remove this when Instant Extended is fully launched.
279 chrome.searchBox = chrome.embeddedSearch.searchBox; 279 chrome.searchBox = chrome.embeddedSearch.searchBox;
280 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698