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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool update_popup, | 104 bool update_popup, |
105 bool notify_text_changed) OVERRIDE; | 105 bool notify_text_changed) OVERRIDE; |
106 virtual void SetForcedQuery() OVERRIDE; | 106 virtual void SetForcedQuery() OVERRIDE; |
107 virtual bool IsSelectAll() const OVERRIDE; | 107 virtual bool IsSelectAll() const OVERRIDE; |
108 virtual bool DeleteAtEndPressed() OVERRIDE; | 108 virtual bool DeleteAtEndPressed() OVERRIDE; |
109 virtual void GetSelectionBounds(string16::size_type* start, | 109 virtual void GetSelectionBounds(string16::size_type* start, |
110 string16::size_type* end) const OVERRIDE; | 110 string16::size_type* end) const OVERRIDE; |
111 virtual void SelectAll(bool reversed) OVERRIDE; | 111 virtual void SelectAll(bool reversed) OVERRIDE; |
112 virtual void UpdatePopup() OVERRIDE; | 112 virtual void UpdatePopup() OVERRIDE; |
113 virtual void SetFocus() OVERRIDE; | 113 virtual void SetFocus() OVERRIDE; |
| 114 virtual void ApplyCaretVisibility() OVERRIDE; |
114 virtual void OnTemporaryTextMaybeChanged( | 115 virtual void OnTemporaryTextMaybeChanged( |
115 const string16& display_text, | 116 const string16& display_text, |
116 bool save_original_selection) OVERRIDE; | 117 bool save_original_selection) OVERRIDE; |
117 virtual bool OnInlineAutocompleteTextMaybeChanged( | 118 virtual bool OnInlineAutocompleteTextMaybeChanged( |
118 const string16& display_text, size_t user_text_length) OVERRIDE; | 119 const string16& display_text, size_t user_text_length) OVERRIDE; |
119 virtual void OnRevertTemporaryText() OVERRIDE; | 120 virtual void OnRevertTemporaryText() OVERRIDE; |
120 virtual void OnBeforePossibleChange() OVERRIDE; | 121 virtual void OnBeforePossibleChange() OVERRIDE; |
121 virtual bool OnAfterPossibleChange() OVERRIDE; | 122 virtual bool OnAfterPossibleChange() OVERRIDE; |
122 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 123 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
123 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; | 124 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // avoid showing the popup. So far, the candidate window is detected only | 211 // avoid showing the popup. So far, the candidate window is detected only |
211 // on Chrome OS. | 212 // on Chrome OS. |
212 bool ime_candidate_window_open_; | 213 bool ime_candidate_window_open_; |
213 | 214 |
214 // Should we select all the text when we see the mouse button get released? | 215 // Should we select all the text when we see the mouse button get released? |
215 // We select in response to a click that focuses the omnibox, but we defer | 216 // We select in response to a click that focuses the omnibox, but we defer |
216 // until release, setting this variable back to false if we saw a drag, to | 217 // until release, setting this variable back to false if we saw a drag, to |
217 // allow the user to select just a portion of the text. | 218 // allow the user to select just a portion of the text. |
218 bool select_all_on_mouse_release_; | 219 bool select_all_on_mouse_release_; |
219 | 220 |
| 221 // Used to keep track of the visible caret color so that it can be restored |
| 222 // after the caret has been hidden. |
| 223 SkColor visible_caret_color_; |
| 224 |
220 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 225 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
221 }; | 226 }; |
222 | 227 |
223 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 228 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |