Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "components/omnibox/browser/omnibox_view.h" 17 #include "components/omnibox/browser/omnibox_view.h"
18 #include "components/security_state/security_state_model.h" 18 #include "components/security_state/core/security_state.h"
19 #include "ui/base/window_open_disposition.h" 19 #include "ui/base/window_open_disposition.h"
20 #include "ui/gfx/range/range.h" 20 #include "ui/gfx/range/range.h"
21 #include "ui/views/controls/textfield/textfield.h" 21 #include "ui/views/controls/textfield/textfield.h"
22 #include "ui/views/controls/textfield/textfield_controller.h" 22 #include "ui/views/controls/textfield/textfield_controller.h"
23 23
24 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
25 #include "ui/base/ime/chromeos/input_method_manager.h" 25 #include "ui/base/ime/chromeos/input_method_manager.h"
26 #endif 26 #endif
27 27
28 class CommandUpdater; 28 class CommandUpdater;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override; 201 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override;
202 202
203 Profile* profile_; 203 Profile* profile_;
204 204
205 // When true, the location bar view is read only and also is has a slightly 205 // When true, the location bar view is read only and also is has a slightly
206 // different presentation (smaller font size). This is used for popups. 206 // different presentation (smaller font size). This is used for popups.
207 bool popup_window_mode_; 207 bool popup_window_mode_;
208 208
209 std::unique_ptr<OmniboxPopupView> popup_view_; 209 std::unique_ptr<OmniboxPopupView> popup_view_;
210 210
211 security_state::SecurityStateModel::SecurityLevel security_level_; 211 security_state::SecurityLevel security_level_;
212 212
213 // Selection persisted across temporary text changes, like popup suggestions. 213 // Selection persisted across temporary text changes, like popup suggestions.
214 gfx::Range saved_temporary_selection_; 214 gfx::Range saved_temporary_selection_;
215 215
216 // Holds the user's selection across focus changes. There is only a saved 216 // Holds the user's selection across focus changes. There is only a saved
217 // selection if this range IsValid(). 217 // selection if this range IsValid().
218 gfx::Range saved_selection_for_focus_change_; 218 gfx::Range saved_selection_for_focus_change_;
219 219
220 // Tracking state before and after a possible change. 220 // Tracking state before and after a possible change.
221 State state_before_change_; 221 State state_before_change_;
(...skipping 22 matching lines...) Expand all
244 bool select_all_on_gesture_tap_; 244 bool select_all_on_gesture_tap_;
245 245
246 // 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
247 // painted. Used to measure omnibox responsiveness with a histogram. 247 // painted. Used to measure omnibox responsiveness with a histogram.
248 base::TimeTicks insert_char_time_; 248 base::TimeTicks insert_char_time_;
249 249
250 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 250 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
251 }; 251 };
252 252
253 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 253 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698