| 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 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool save_original_selection, | 140 bool save_original_selection, |
| 141 bool notify_text_changed) override; | 141 bool notify_text_changed) override; |
| 142 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, | 142 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, |
| 143 size_t user_text_length) override; | 143 size_t user_text_length) override; |
| 144 void OnInlineAutocompleteTextCleared() override; | 144 void OnInlineAutocompleteTextCleared() override; |
| 145 void OnRevertTemporaryText() override; | 145 void OnRevertTemporaryText() override; |
| 146 void OnBeforePossibleChange() override; | 146 void OnBeforePossibleChange() override; |
| 147 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; | 147 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; |
| 148 gfx::NativeView GetNativeView() const override; | 148 gfx::NativeView GetNativeView() const override; |
| 149 gfx::NativeView GetRelativeWindowForPopup() const override; | 149 gfx::NativeView GetRelativeWindowForPopup() const override; |
| 150 void SetGrayTextAutocompletion(const base::string16& input) override; | |
| 151 base::string16 GetGrayTextAutocompletion() const override; | |
| 152 int GetWidth() const override; | 150 int GetWidth() const override; |
| 153 bool IsImeShowingPopup() const override; | 151 bool IsImeShowingPopup() const override; |
| 154 void ShowImeIfNeeded() override; | 152 void ShowImeIfNeeded() override; |
| 155 void OnMatchOpened(AutocompleteMatch::Type match_type) override; | 153 void OnMatchOpened(AutocompleteMatch::Type match_type) override; |
| 156 int GetOmniboxTextLength() const override; | 154 int GetOmniboxTextLength() const override; |
| 157 void EmphasizeURLComponents() override; | 155 void EmphasizeURLComponents() override; |
| 158 | 156 |
| 159 // views::Textfield: | 157 // views::Textfield: |
| 160 bool IsItemForCommandIdDynamic(int command_id) const override; | 158 bool IsItemForCommandIdDynamic(int command_id) const override; |
| 161 base::string16 GetLabelForCommandId(int command_id) const override; | 159 base::string16 GetLabelForCommandId(int command_id) const override; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 bool select_all_on_gesture_tap_; | 242 bool select_all_on_gesture_tap_; |
| 245 | 243 |
| 246 // The time of the first character insert operation that has not yet been | 244 // The time of the first character insert operation that has not yet been |
| 247 // painted. Used to measure omnibox responsiveness with a histogram. | 245 // painted. Used to measure omnibox responsiveness with a histogram. |
| 248 base::TimeTicks insert_char_time_; | 246 base::TimeTicks insert_char_time_; |
| 249 | 247 |
| 250 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 248 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
| 251 }; | 249 }; |
| 252 | 250 |
| 253 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 251 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| OLD | NEW |