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

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

Issue 2151483004: Remove embeddedSearch.newTabPage.GetAppLauncherEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused include, rebase Created 4 years, 5 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 }; 71 };
72 72
73 this.stopCapturingKeyStrokes = function() { 73 this.stopCapturingKeyStrokes = function() {
74 StopCapturingKeyStrokes(); 74 StopCapturingKeyStrokes();
75 }; 75 };
76 76
77 this.onfocuschange = null; 77 this.onfocuschange = null;
78 this.onkeycapturechange = null; 78 this.onkeycapturechange = null;
79 this.onsubmit = null; 79 this.onsubmit = null;
80 this.onsuggestionchange = null; 80 this.onsuggestionchange = null;
81
82 //TODO(jered): Remove this empty method when google no longer requires it.
83 this.setRestrictedValue = function() {};
84 }; 81 };
85 82
86 this.newTabPage = new function() { 83 this.newTabPage = new function() {
87 84
88 // ======================================================================= 85 // =======================================================================
89 // Private functions 86 // Private functions
90 // ======================================================================= 87 // =======================================================================
91 native function CheckIsUserSignedInToChromeAs(); 88 native function CheckIsUserSignedInToChromeAs();
92 native function CheckIsUserSyncingHistory(); 89 native function CheckIsUserSyncingHistory();
93 native function DeleteMostVisitedItem(); 90 native function DeleteMostVisitedItem();
94 native function GetAppLauncherEnabled();
95 native function GetMostVisitedItems(); 91 native function GetMostVisitedItems();
96 native function GetThemeBackgroundInfo(); 92 native function GetThemeBackgroundInfo();
97 native function IsInputInProgress(); 93 native function IsInputInProgress();
98 native function LogEvent(); 94 native function LogEvent();
99 native function LogMostVisitedImpression(); 95 native function LogMostVisitedImpression();
100 native function LogMostVisitedNavigation(); 96 native function LogMostVisitedNavigation();
101 native function UndoAllMostVisitedDeletions(); 97 native function UndoAllMostVisitedDeletions();
102 native function UndoMostVisitedDeletion(); 98 native function UndoMostVisitedDeletion();
103 99
104 function GetMostVisitedItemsWrapper() { 100 function GetMostVisitedItemsWrapper() {
(...skipping 16 matching lines...) Expand all
121 117
122 function GenerateFaviconURL(renderViewId, rid) { 118 function GenerateFaviconURL(renderViewId, rid) {
123 return "chrome-search://favicon/size/16@" + 119 return "chrome-search://favicon/size/16@" +
124 window.devicePixelRatio + "x/" + 120 window.devicePixelRatio + "x/" +
125 renderViewId + "/" + rid; 121 renderViewId + "/" + rid;
126 } 122 }
127 123
128 // ======================================================================= 124 // =======================================================================
129 // Exported functions 125 // Exported functions
130 // ======================================================================= 126 // =======================================================================
131 this.__defineGetter__('appLauncherEnabled', GetAppLauncherEnabled);
132 this.__defineGetter__('isInputInProgress', IsInputInProgress); 127 this.__defineGetter__('isInputInProgress', IsInputInProgress);
133 this.__defineGetter__('mostVisited', GetMostVisitedItemsWrapper); 128 this.__defineGetter__('mostVisited', GetMostVisitedItemsWrapper);
134 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); 129 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
135 130
136 this.deleteMostVisitedItem = function(restrictedId) { 131 this.deleteMostVisitedItem = function(restrictedId) {
137 DeleteMostVisitedItem(restrictedId); 132 DeleteMostVisitedItem(restrictedId);
138 }; 133 };
139 134
140 this.checkIsUserSignedIntoChromeAs = function(identity) { 135 this.checkIsUserSignedIntoChromeAs = function(identity) {
141 CheckIsUserSignedInToChromeAs(identity); 136 CheckIsUserSignedInToChromeAs(identity);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 this.oninputcancel = null; 171 this.oninputcancel = null;
177 this.oninputstart = null; 172 this.oninputstart = null;
178 this.onmostvisitedchange = null; 173 this.onmostvisitedchange = null;
179 this.onthemechange = null; 174 this.onthemechange = null;
180 }; 175 };
181 176
182 // TODO(jered): Remove when google no longer expects this object. 177 // TODO(jered): Remove when google no longer expects this object.
183 chrome.searchBox = this.searchBox; 178 chrome.searchBox = this.searchBox;
184 }; 179 };
185 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698