Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1124)

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 2501753002: [Mac] Changes for the security chip (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698