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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 2152823004: [Material][Mac] Animation for Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index 345eb2a1996b26736fa905d9c7e35a804ccce483..7b35e1c639c9395067b180c7db5a96edcbf82c5a 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -26,6 +26,7 @@
class CommandUpdater;
class ContentSettingDecoration;
class EVBubbleDecoration;
+class SecureVerboseBubbleDecoration;
class KeywordHintDecoration;
class LocationBarDecoration;
class LocationIconDecoration;
@@ -184,8 +185,17 @@ class LocationBarViewMac : public LocationBar,
content::WebContents* GetWebContents() override;
bool ShouldShowEVBubble() const;
+
+ // Returns true if the secure verbose decoration should be displayed. This
+ // includes the EV cert decoration. For Phase 1, the verbose shouldn't be
+ // displayed for "Not Secure".
+ bool ShouldShowSecureVerbose() const;
+
NSImage* GetKeywordImage(const base::string16& keyword);
+ // Returns the color for the vector icon in the location bar.
+ SkColor GetLocationBarIconColor() const;
+
AutocompleteTextField* GetAutocompleteTextField() { return field_; }
// Returns true if the location bar is dark.
@@ -262,6 +272,11 @@ class LocationBarViewMac : public LocationBar,
// A decoration that shows the keyword-search bubble on the left.
std::unique_ptr<SelectedKeywordDecoration> selected_keyword_decoration_;
+ // A decoration that shows a security icon and the secure verbose in a
+ // bubble on the left.
+ std::unique_ptr<SecureVerboseBubbleDecoration>
+ secure_verbose_bubble_decoration_;
+
// A decoration that shows a lock icon and ev-cert label in a bubble
// on the left.
std::unique_ptr<EVBubbleDecoration> ev_bubble_decoration_;

Powered by Google App Engine
This is Rietveld 408576698