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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
130 'The text that is presented identifying the result.'), | 130 'The text that is presented identifying the result.'), |
131 new PresentationInfoRecord( | 131 new PresentationInfoRecord( |
132 'Can Be Default', '', 'allowed_to_be_default_match', false, | 132 'Can Be Default', '', 'allowed_to_be_default_match', false, |
133 'A green checkmark indicates that the result can be the default ' + | 133 'A green checkmark indicates that the result can be the default ' + |
134 'match (i.e., can be the match that pressing enter in the omnibox ' + | 134 'match (i.e., can be the match that pressing enter in the omnibox ' + |
135 'navigates to).'), | 135 'navigates to).'), |
136 new PresentationInfoRecord('Starred', '', 'starred', false, | 136 new PresentationInfoRecord('Starred', '', 'starred', false, |
137 'A green checkmark indicates that the result has been bookmarked.'), | 137 'A green checkmark indicates that the result has been bookmarked.'), |
138 new PresentationInfoRecord( | |
139 'HWYT', '', 'is_history_what_you_typed_match', false, | |
140 'A green checkmark indicates that the result is an History What You ' + | |
141 'Typed Match'), | |
142 new PresentationInfoRecord('Description', '', 'description', false, | 138 new PresentationInfoRecord('Description', '', 'description', false, |
143 'The page title of the result.'), | 139 'The page title of the result.'), |
144 new PresentationInfoRecord('URL', '', 'destination_url', true, | 140 new PresentationInfoRecord('URL', '', 'destination_url', true, |
145 'The URL for the result.'), | 141 'The URL for the result.'), |
146 new PresentationInfoRecord('Fill Into Edit', '', 'fill_into_edit', false, | 142 new PresentationInfoRecord('Fill Into Edit', '', 'fill_into_edit', false, |
147 'The text shown in the omnibox when the result is selected.'), | 143 'The text shown in the omnibox when the result is selected.'), |
148 new PresentationInfoRecord( | 144 new PresentationInfoRecord( |
149 'Inline Autocompletion', '', 'inline_autocompletion', false, | 145 'Inline Autocompletion', '', 'inline_autocompletion', false, |
150 'The text shown in the omnibox as a blue highlight selection ' + | 146 'The text shown in the omnibox as a blue highlight selection ' + |
151 'following the cursor, if this match is shown inline.'), | 147 'following the cursor, if this match is shown inline.'), |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 }; | 435 }; |
440 | 436 |
441 return function() { | 437 return function() { |
442 var browserProxy = connection.bindHandleToProxy( | 438 var browserProxy = connection.bindHandleToProxy( |
443 serviceProvider.connectToService( | 439 serviceProvider.connectToService( |
444 browser.OmniboxUIHandlerMojo.name), | 440 browser.OmniboxUIHandlerMojo.name), |
445 browser.OmniboxUIHandlerMojo); | 441 browser.OmniboxUIHandlerMojo); |
446 page = new OmniboxPageImpl(browserProxy); | 442 page = new OmniboxPageImpl(browserProxy); |
447 }; | 443 }; |
448 }); | 444 }); |
OLD | NEW |