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_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void OnAddedToWindow(); | 172 void OnAddedToWindow(); |
173 | 173 |
174 // Notify the location bar that the browser window theme has changed. Provides | 174 // Notify the location bar that the browser window theme has changed. Provides |
175 // an update point for interface objects that need to set their appearance | 175 // an update point for interface objects that need to set their appearance |
176 // based on the window's theme. | 176 // based on the window's theme. |
177 void OnThemeChanged(); | 177 void OnThemeChanged(); |
178 | 178 |
179 // ChromeOmniboxEditController: | 179 // ChromeOmniboxEditController: |
180 void UpdateWithoutTabRestore() override; | 180 void UpdateWithoutTabRestore() override; |
181 void OnChanged() override; | 181 void OnChanged() override; |
182 void ShowURL() override; | |
183 ToolbarModel* GetToolbarModel() override; | 182 ToolbarModel* GetToolbarModel() override; |
184 const ToolbarModel* GetToolbarModel() const override; | 183 const ToolbarModel* GetToolbarModel() const override; |
185 content::WebContents* GetWebContents() override; | 184 content::WebContents* GetWebContents() override; |
186 | 185 |
187 bool ShouldShowEVBubble() const; | 186 bool ShouldShowEVBubble() const; |
188 | 187 |
189 // Returns true if the security state decoration should be displayed. The | 188 // Returns true if the security state decoration should be displayed. The |
190 // security state should only be shown for valid and invalid HTTPS states. | 189 // security state should only be shown for valid and invalid HTTPS states. |
191 bool ShouldShowSecurityState() const; | 190 bool ShouldShowSecurityState() const; |
192 | 191 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // The security level of the location bar icon. | 320 // The security level of the location bar icon. |
322 security_state::SecurityStateModel::SecurityLevel security_level_; | 321 security_state::SecurityStateModel::SecurityLevel security_level_; |
323 | 322 |
324 // Used to schedule a task for the first run info bubble. | 323 // Used to schedule a task for the first run info bubble. |
325 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 324 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
326 | 325 |
327 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 326 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
328 }; | 327 }; |
329 | 328 |
330 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 329 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |