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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 int GetWidth() const override; | 150 int GetWidth() const override; |
151 bool IsImeShowingPopup() const override; | 151 bool IsImeShowingPopup() const override; |
152 void ShowImeIfNeeded() override; | 152 void ShowImeIfNeeded() override; |
153 void OnMatchOpened(AutocompleteMatch::Type match_type) override; | 153 void OnMatchOpened(AutocompleteMatch::Type match_type) override; |
154 int GetOmniboxTextLength() const override; | 154 int GetOmniboxTextLength() const override; |
155 void EmphasizeURLComponents() override; | 155 void EmphasizeURLComponents() override; |
| 156 void SetEmphasis(bool emphasize, const gfx::Range& range) override; |
| 157 void UpdateSchemeStyle(const gfx::Range& range) override; |
156 | 158 |
157 // views::Textfield: | 159 // views::Textfield: |
158 bool IsItemForCommandIdDynamic(int command_id) const override; | 160 bool IsItemForCommandIdDynamic(int command_id) const override; |
159 base::string16 GetLabelForCommandId(int command_id) const override; | 161 base::string16 GetLabelForCommandId(int command_id) const override; |
160 const char* GetClassName() const override; | 162 const char* GetClassName() const override; |
161 bool OnMousePressed(const ui::MouseEvent& event) override; | 163 bool OnMousePressed(const ui::MouseEvent& event) override; |
162 bool OnMouseDragged(const ui::MouseEvent& event) override; | 164 bool OnMouseDragged(const ui::MouseEvent& event) override; |
163 void OnMouseReleased(const ui::MouseEvent& event) override; | 165 void OnMouseReleased(const ui::MouseEvent& event) override; |
164 void OnGestureEvent(ui::GestureEvent* event) override; | 166 void OnGestureEvent(ui::GestureEvent* event) override; |
165 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 167 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 bool select_all_on_gesture_tap_; | 244 bool select_all_on_gesture_tap_; |
243 | 245 |
244 // The time of the first character insert operation that has not yet been | 246 // The time of the first character insert operation that has not yet been |
245 // painted. Used to measure omnibox responsiveness with a histogram. | 247 // painted. Used to measure omnibox responsiveness with a histogram. |
246 base::TimeTicks insert_char_time_; | 248 base::TimeTicks insert_char_time_; |
247 | 249 |
248 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 250 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
249 }; | 251 }; |
250 | 252 |
251 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 253 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |