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 if (!chrome.searchBox) { | 8 if (!chrome.searchBox) { |
9 chrome.searchBox = new function() { | 9 chrome.searchBox = new function() { |
10 var safeObjects = {}; | 10 var safeObjects = {}; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 }; | 221 }; |
222 this.setRestrictedValue = function(resultId) { | 222 this.setRestrictedValue = function(resultId) { |
223 SetQueryFromAutocompleteResult(resultId); | 223 SetQueryFromAutocompleteResult(resultId); |
224 }; | 224 }; |
225 this.show = function(reason, height) { | 225 this.show = function(reason, height) { |
226 Show(reason, height); | 226 Show(reason, height); |
227 }; | 227 }; |
228 this.markDuplicateSuggestions = function(clientSuggestions) { | 228 this.markDuplicateSuggestions = function(clientSuggestions) { |
229 return DedupeClientSuggestions(clientSuggestions); | 229 return DedupeClientSuggestions(clientSuggestions); |
230 }; | 230 }; |
231 this.navigateContentWindow = function(destination) { | 231 this.navigateContentWindow = function(destination, disposition) { |
232 return NavigateContentWindow(destination); | 232 return NavigateContentWindow(destination, disposition); |
233 }; | 233 }; |
234 this.startCapturingKeyStrokes = function() { | 234 this.startCapturingKeyStrokes = function() { |
235 StartCapturingKeyStrokes(); | 235 StartCapturingKeyStrokes(); |
236 }; | 236 }; |
237 this.stopCapturingKeyStrokes = function() { | 237 this.stopCapturingKeyStrokes = function() { |
238 StopCapturingKeyStrokes(); | 238 StopCapturingKeyStrokes(); |
239 }; | 239 }; |
240 this.onchange = null; | 240 this.onchange = null; |
241 this.onsubmit = null; | 241 this.onsubmit = null; |
242 this.oncancel = null; | 242 this.oncancel = null; |
243 this.onresize = null; | 243 this.onresize = null; |
244 this.onautocompleteresults = null; | 244 this.onautocompleteresults = null; |
245 this.onkeypress = null; | 245 this.onkeypress = null; |
246 this.onkeycapturechange = null; | 246 this.onkeycapturechange = null; |
247 this.oncontextchange = null; | 247 this.oncontextchange = null; |
248 this.onmarginchange = null; | 248 this.onmarginchange = null; |
249 }; | 249 }; |
250 } | 250 } |
OLD | NEW |