OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TOOLBAR_MODEL_H__ | 5 #ifndef CHROME_BROWSER_TOOLBAR_MODEL_H__ |
6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__ | 6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 class NavigationController; | 14 class NavigationController; |
15 class NavigationEntry; | |
16 | 15 |
17 // This class is the model used by the toolbar, location bar and autocomplete | 16 // This class is the model used by the toolbar, location bar and autocomplete |
18 // edit. It populates its states from the current navigation entry retrieved | 17 // edit. It populates its states from the current navigation entry retrieved |
19 // from the navigation controller returned by GetNavigationController(). | 18 // from the navigation controller returned by GetNavigationController(). |
20 class ToolbarModel { | 19 class ToolbarModel { |
21 public: | 20 public: |
22 // TODO(wtc): unify ToolbarModel::SecurityLevel with SecurityStyle. We | 21 // TODO(wtc): unify ToolbarModel::SecurityLevel with SecurityStyle. We |
23 // don't need two sets of security UI levels. SECURITY_STYLE_AUTHENTICATED | 22 // don't need two sets of security UI levels. SECURITY_STYLE_AUTHENTICATED |
24 // needs to be refined into three levels: warning, standard, and EV. | 23 // needs to be refined into three levels: warning, standard, and EV. |
25 enum SecurityLevel { | 24 enum SecurityLevel { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 62 |
64 Browser* browser_; | 63 Browser* browser_; |
65 | 64 |
66 // Whether the text in the location bar is currently being edited. | 65 // Whether the text in the location bar is currently being edited. |
67 bool input_in_progress_; | 66 bool input_in_progress_; |
68 | 67 |
69 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModel); | 68 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModel); |
70 }; | 69 }; |
71 | 70 |
72 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ | 71 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ |
OLD | NEW |