OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 /** | 5 /** |
6 * Javascript for omnibox.html, served from chrome://omnibox/ | 6 * Javascript for omnibox.html, served from chrome://omnibox/ |
7 * This is used to debug omnibox ranking. The user enters some text | 7 * This is used to debug omnibox ranking. The user enters some text |
8 * into a box, submits it, and then sees lots of debug information | 8 * into a box, submits it, and then sees lots of debug information |
9 * from the autocompleter that shows what omnibox would do with that | 9 * from the autocompleter that shows what omnibox would do with that |
10 * input. | 10 * input. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 this.propertyName = propertyName; | 109 this.propertyName = propertyName; |
110 this.displayAlways = displayAlways; | 110 this.displayAlways = displayAlways; |
111 this.tooltip = tooltip; | 111 this.tooltip = tooltip; |
112 } | 112 } |
113 | 113 |
114 /** | 114 /** |
115 * A constant that's used to decide what autocomplete result | 115 * A constant that's used to decide what autocomplete result |
116 * properties to output in what order. This is an array of | 116 * properties to output in what order. This is an array of |
117 * PresentationInfoRecord() objects; for details see that | 117 * PresentationInfoRecord() objects; for details see that |
118 * function. | 118 * function. |
119 * @type {Array.<Object>} | 119 * @type {Array<Object>} |
120 * @const | 120 * @const |
121 */ | 121 */ |
122 var PROPERTY_OUTPUT_ORDER = [ | 122 var PROPERTY_OUTPUT_ORDER = [ |
123 new PresentationInfoRecord('Provider', '', 'provider_name', true, | 123 new PresentationInfoRecord('Provider', '', 'provider_name', true, |
124 'The AutocompleteProvider suggesting this result.'), | 124 'The AutocompleteProvider suggesting this result.'), |
125 new PresentationInfoRecord('Type', '', 'type', true, | 125 new PresentationInfoRecord('Type', '', 'type', true, |
126 'The type of the result.'), | 126 'The type of the result.'), |
127 new PresentationInfoRecord('Relevance', '', 'relevance', true, | 127 new PresentationInfoRecord('Relevance', '', 'relevance', true, |
128 'The result score. Higher is more relevant.'), | 128 'The result score. Higher is more relevant.'), |
129 new PresentationInfoRecord('Contents', '', 'contents', true, | 129 new PresentationInfoRecord('Contents', '', 'contents', true, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 }; | 439 }; |
440 | 440 |
441 return function() { | 441 return function() { |
442 var browserProxy = connection.bindHandleToProxy( | 442 var browserProxy = connection.bindHandleToProxy( |
443 serviceProvider.connectToService( | 443 serviceProvider.connectToService( |
444 browser.OmniboxUIHandlerMojo.name), | 444 browser.OmniboxUIHandlerMojo.name), |
445 browser.OmniboxUIHandlerMojo); | 445 browser.OmniboxUIHandlerMojo); |
446 page = new OmniboxPageImpl(browserProxy); | 446 page = new OmniboxPageImpl(browserProxy); |
447 }; | 447 }; |
448 }); | 448 }); |
OLD | NEW |