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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override; | 203 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override; |
204 | 204 |
205 Profile* profile_; | 205 Profile* profile_; |
206 | 206 |
207 // When true, the location bar view is read only and also is has a slightly | 207 // When true, the location bar view is read only and also is has a slightly |
208 // different presentation (smaller font size). This is used for popups. | 208 // different presentation (smaller font size). This is used for popups. |
209 bool popup_window_mode_; | 209 bool popup_window_mode_; |
210 | 210 |
211 scoped_ptr<OmniboxPopupView> popup_view_; | 211 scoped_ptr<OmniboxPopupView> popup_view_; |
212 | 212 |
213 SecurityStateModel::SecurityLevel security_level_; | 213 security_state::SecurityStateModel::SecurityLevel security_level_; |
214 | 214 |
215 // Selection persisted across temporary text changes, like popup suggestions. | 215 // Selection persisted across temporary text changes, like popup suggestions. |
216 gfx::Range saved_temporary_selection_; | 216 gfx::Range saved_temporary_selection_; |
217 | 217 |
218 // Holds the user's selection across focus changes. There is only a saved | 218 // Holds the user's selection across focus changes. There is only a saved |
219 // selection if this range IsValid(). | 219 // selection if this range IsValid(). |
220 gfx::Range saved_selection_for_focus_change_; | 220 gfx::Range saved_selection_for_focus_change_; |
221 | 221 |
222 // Tracking state before and after a possible change. | 222 // Tracking state before and after a possible change. |
223 base::string16 text_before_change_; | 223 base::string16 text_before_change_; |
(...skipping 26 matching lines...) Expand all Loading... |
250 // painted. Used to measure omnibox responsiveness with a histogram. | 250 // painted. Used to measure omnibox responsiveness with a histogram. |
251 base::TimeTicks insert_char_time_; | 251 base::TimeTicks insert_char_time_; |
252 | 252 |
253 // Used to bind callback functions to this object. | 253 // Used to bind callback functions to this object. |
254 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; | 254 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; |
255 | 255 |
256 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 256 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
257 }; | 257 }; |
258 | 258 |
259 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 259 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |