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

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, 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 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); 312 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
313 313
314 this.onthemechange = null; 314 this.onthemechange = null;
315 }; 315 };
316 316
317 // Export legacy searchbox API. 317 // Export legacy searchbox API.
318 // TODO: Remove this when Instant Extended is fully launched. 318 // TODO: Remove this when Instant Extended is fully launched.
319 chrome.searchBox = chrome.embeddedSearch.searchBox; 319 chrome.searchBox = chrome.embeddedSearch.searchBox;
320 } 320 }
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