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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Initializes the LocationBarView. | 136 // Initializes the LocationBarView. |
137 void Init(); | 137 void Init(); |
138 | 138 |
139 // True if this instance has been initialized by calling Init, which can only | 139 // True if this instance has been initialized by calling Init, which can only |
140 // be called when the receiving instance is attached to a view container. | 140 // be called when the receiving instance is attached to a view container. |
141 bool IsInitialized() const; | 141 bool IsInitialized() const; |
142 | 142 |
143 // Returns the appropriate color for the desired kind, based on the user's | 143 // Returns the appropriate color for the desired kind, based on the user's |
144 // system theme. | 144 // system theme. |
145 SkColor GetColor(connection_security::SecurityLevel security_level, | 145 SkColor GetColor(SecurityStateModel::SecurityLevel security_level, |
146 ColorKind kind) const; | 146 ColorKind kind) const; |
147 | 147 |
148 // Returns the delegate. | 148 // Returns the delegate. |
149 Delegate* delegate() const { return delegate_; } | 149 Delegate* delegate() const { return delegate_; } |
150 | 150 |
151 // See comment in browser_window.h for more info. | 151 // See comment in browser_window.h for more info. |
152 void ZoomChangedForActiveTab(bool can_show_bubble); | 152 void ZoomChangedForActiveTab(bool can_show_bubble); |
153 | 153 |
154 // The zoom icon. It may not be visible. | 154 // The zoom icon. It may not be visible. |
155 ZoomView* zoom_view() { return zoom_view_; } | 155 ZoomView* zoom_view() { return zoom_view_; } |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 int dropdown_animation_offset_; | 484 int dropdown_animation_offset_; |
485 | 485 |
486 // This is a debug state variable that stores if the WebContents was null | 486 // This is a debug state variable that stores if the WebContents was null |
487 // during the last RefreshPageAction. | 487 // during the last RefreshPageAction. |
488 bool web_contents_null_at_last_refresh_; | 488 bool web_contents_null_at_last_refresh_; |
489 | 489 |
490 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 490 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
491 }; | 491 }; |
492 | 492 |
493 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 493 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |