| 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 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 | 37 |
| 38 // Reasons why the Omnibox could change into keyword mode. | 38 // Reasons why the Omnibox could change into keyword mode. |
| 39 // These numeric values are used in UMA logs; do not change them. | 39 // These numeric values are used in UMA logs; do not change them. |
| 40 enum class KeywordModeEntryMethod { | 40 enum class KeywordModeEntryMethod { |
| 41 TAB = 0, | 41 TAB = 0, |
| 42 SPACE_AT_END = 1, | 42 SPACE_AT_END = 1, |
| 43 SPACE_IN_MIDDLE = 2, | 43 SPACE_IN_MIDDLE = 2, |
| 44 KEYBOARD_SHORTCUT = 3, | 44 KEYBOARD_SHORTCUT = 3, |
| 45 QUESTION_MARK = 4, | 45 QUESTION_MARK = 4, |
| 46 CLICK_ON_VIEW = 5, |
| 47 TAP_ON_VIEW = 6, |
| 46 NUM_ITEMS, | 48 NUM_ITEMS, |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 class OmniboxEditModel { | 51 class OmniboxEditModel { |
| 50 public: | 52 public: |
| 51 // Did the Omnibox focus originate via the user clicking on the Omnibox or on | 53 // Did the Omnibox focus originate via the user clicking on the Omnibox or on |
| 52 // the Fakebox? | 54 // the Fakebox? |
| 53 enum FocusSource { | 55 enum FocusSource { |
| 54 INVALID = 0, | 56 INVALID = 0, |
| 55 OMNIBOX = 1, | 57 OMNIBOX = 1, |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 563 |
| 562 // The input that was sent to the AutocompleteController. Since no | 564 // The input that was sent to the AutocompleteController. Since no |
| 563 // autocomplete query is started after a tab switch, it is possible for this | 565 // autocomplete query is started after a tab switch, it is possible for this |
| 564 // |input_| to differ from the one currently stored in AutocompleteController. | 566 // |input_| to differ from the one currently stored in AutocompleteController. |
| 565 AutocompleteInput input_; | 567 AutocompleteInput input_; |
| 566 | 568 |
| 567 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); | 569 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); |
| 568 }; | 570 }; |
| 569 | 571 |
| 570 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 572 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| OLD | NEW |