| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Initializes the LocationBarView. | 140 // Initializes the LocationBarView. |
| 141 void Init(); | 141 void Init(); |
| 142 | 142 |
| 143 // True if this instance has been initialized by calling Init, which can only | 143 // True if this instance has been initialized by calling Init, which can only |
| 144 // be called when the receiving instance is attached to a view container. | 144 // be called when the receiving instance is attached to a view container. |
| 145 bool IsInitialized() const; | 145 bool IsInitialized() const; |
| 146 | 146 |
| 147 // Returns the appropriate color for the desired kind, based on the user's | 147 // Returns the appropriate color for the desired kind, based on the user's |
| 148 // system theme. | 148 // system theme. |
| 149 SkColor GetColor(ConnectionSecurityHelper::SecurityLevel security_level, | 149 SkColor GetColor(connection_security::SecurityLevel security_level, |
| 150 ColorKind kind) const; | 150 ColorKind kind) const; |
| 151 | 151 |
| 152 // Returns the delegate. | 152 // Returns the delegate. |
| 153 Delegate* delegate() const { return delegate_; } | 153 Delegate* delegate() const { return delegate_; } |
| 154 | 154 |
| 155 // See comment in browser_window.h for more info. | 155 // See comment in browser_window.h for more info. |
| 156 void ZoomChangedForActiveTab(bool can_show_bubble); | 156 void ZoomChangedForActiveTab(bool can_show_bubble); |
| 157 | 157 |
| 158 // The zoom icon. It may not be visible. | 158 // The zoom icon. It may not be visible. |
| 159 ZoomView* zoom_view() { return zoom_view_; } | 159 ZoomView* zoom_view() { return zoom_view_; } |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 int dropdown_animation_offset_; | 499 int dropdown_animation_offset_; |
| 500 | 500 |
| 501 // This is a debug state variable that stores if the WebContents was null | 501 // This is a debug state variable that stores if the WebContents was null |
| 502 // during the last RefreshPageAction. | 502 // during the last RefreshPageAction. |
| 503 bool web_contents_null_at_last_refresh_; | 503 bool web_contents_null_at_last_refresh_; |
| 504 | 504 |
| 505 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 505 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 508 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |