| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // state. | 247 // state. |
| 248 void UpdateTranslateDecoration(); | 248 void UpdateTranslateDecoration(); |
| 249 | 249 |
| 250 // Updates the zoom decoration in the omnibox with the current zoom level. | 250 // Updates the zoom decoration in the omnibox with the current zoom level. |
| 251 // Returns whether any updates were made. | 251 // Returns whether any updates were made. |
| 252 bool UpdateZoomDecoration(bool default_zoom_changed); | 252 bool UpdateZoomDecoration(bool default_zoom_changed); |
| 253 | 253 |
| 254 // Updates the security state bubble decoration. | 254 // Updates the security state bubble decoration. |
| 255 void UpdateSecurityState(bool tab_changed); | 255 void UpdateSecurityState(bool tab_changed); |
| 256 | 256 |
| 257 // Returns true if the security state can animate for the |level|. |
| 258 bool CanAnimateSecurityLevel( |
| 259 security_state::SecurityStateModel::SecurityLevel level) const; |
| 260 |
| 257 // Returns true if |level| is SECURE or EV_SECURE. | 261 // Returns true if |level| is SECURE or EV_SECURE. |
| 258 bool IsSecureConnection( | 262 bool IsSecureConnection( |
| 259 security_state::SecurityStateModel::SecurityLevel level) const; | 263 security_state::SecurityStateModel::SecurityLevel level) const; |
| 260 | 264 |
| 261 // Returns pointers to all of the LocationBarDecorations owned by this | 265 // Returns pointers to all of the LocationBarDecorations owned by this |
| 262 // LocationBarViewMac. This helper function is used for positioning and | 266 // LocationBarViewMac. This helper function is used for positioning and |
| 263 // re-positioning accessibility views. | 267 // re-positioning accessibility views. |
| 264 std::vector<LocationBarDecoration*> GetDecorations(); | 268 std::vector<LocationBarDecoration*> GetDecorations(); |
| 265 | 269 |
| 266 // Updates |decoration|'s accessibility view's position to match the computed | 270 // Updates |decoration|'s accessibility view's position to match the computed |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // The security level of the location bar icon. | 342 // The security level of the location bar icon. |
| 339 security_state::SecurityStateModel::SecurityLevel security_level_; | 343 security_state::SecurityStateModel::SecurityLevel security_level_; |
| 340 | 344 |
| 341 // Used to schedule a task for the first run info bubble. | 345 // Used to schedule a task for the first run info bubble. |
| 342 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 346 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 343 | 347 |
| 344 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 348 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 345 }; | 349 }; |
| 346 | 350 |
| 347 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 351 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |