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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 'HWYT', '', 'is_history_what_you_typed_match', false, | 119 'HWYT', '', 'is_history_what_you_typed_match', false, |
120 'A green checkmark indicates that the result is an History What You ' + | 120 'A green checkmark indicates that the result is an History What You ' + |
121 'Typed Match'), | 121 'Typed Match'), |
122 new PresentationInfoRecord('Description', '', 'description', false, | 122 new PresentationInfoRecord('Description', '', 'description', false, |
123 'The page title of the result.'), | 123 'The page title of the result.'), |
124 new PresentationInfoRecord('URL', '', 'destination_url', true, | 124 new PresentationInfoRecord('URL', '', 'destination_url', true, |
125 'The URL for the result.'), | 125 'The URL for the result.'), |
126 new PresentationInfoRecord('Fill Into Edit', '', 'fill_into_edit', false, | 126 new PresentationInfoRecord('Fill Into Edit', '', 'fill_into_edit', false, |
127 'The text shown in the omnibox when the result is selected.'), | 127 'The text shown in the omnibox when the result is selected.'), |
128 new PresentationInfoRecord( | 128 new PresentationInfoRecord( |
129 'IAO', '', 'inline_autocomplete_offset', false, | 129 'Inline Autocompletion', '', 'inline_autocompletion', false, |
130 'The Inline Autocomplete Offset.'), | 130 'The text shown in the omnibox as a blue highlight selection ' + |
| 131 'following the cursor, if this match is shown inline.'), |
131 new PresentationInfoRecord('Del', '', 'deletable', false, | 132 new PresentationInfoRecord('Del', '', 'deletable', false, |
132 'A green checkmark indicates that the results can be deleted from ' + | 133 'A green checkmark indicates that the results can be deleted from ' + |
133 'the visit history.'), | 134 'the visit history.'), |
134 new PresentationInfoRecord('Prev', '', 'from_previous', false, ''), | 135 new PresentationInfoRecord('Prev', '', 'from_previous', false, ''), |
135 new PresentationInfoRecord( | 136 new PresentationInfoRecord( |
136 'Tran', | 137 'Tran', |
137 'http://code.google.com/codesearch#OAMlx_jo-ck/src/content/public/' + | 138 'http://code.google.com/codesearch#OAMlx_jo-ck/src/content/public/' + |
138 'common/page_transition_types.h&exact_package=chromium&l=24', | 139 'common/page_transition_types.h&exact_package=chromium&l=24', |
139 'transition', false, | 140 'transition', false, |
140 'How the user got to the result.'), | 141 'How the user got to the result.'), |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 } | 453 } |
453 | 454 |
454 return { | 455 return { |
455 initialize: initialize, | 456 initialize: initialize, |
456 startOmniboxQuery: startOmniboxQuery, | 457 startOmniboxQuery: startOmniboxQuery, |
457 handleNewAutocompleteResult: handleNewAutocompleteResult | 458 handleNewAutocompleteResult: handleNewAutocompleteResult |
458 }; | 459 }; |
459 }); | 460 }); |
460 | 461 |
461 document.addEventListener('DOMContentLoaded', omniboxDebug.initialize); | 462 document.addEventListener('DOMContentLoaded', omniboxDebug.initialize); |
OLD | NEW |