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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 2378623007: [Material] Update Material Security Verbose Decoration Flag (Closed)
Patch Set: Rebased again Created 4 years, 2 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/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 84bc25e89e74af5b616bfeacd479c866cf02b7ea..fcfd6076a8970cc5c13145643be3c3cbf8aac6a9 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -328,6 +328,9 @@ class LocationBarView : public LocationBar,
// In these cases, we should show the state of the security chip.
bool ShouldShowSecurityChip() const;
+ // Returns true if the chip should be animated
+ bool ShouldAnimateSecurityChip() const;
+
// Used to "reverse" the URL showing/hiding animations, since we use separate
// animations whose curves are not true inverses of each other. Based on the
// current position of the omnibox, calculates what value the desired
@@ -480,6 +483,7 @@ class LocationBarView : public LocationBar,
// These allow toggling the verbose security state behavior via flags.
bool should_show_secure_state_;
bool should_animate_secure_state_;
+ bool should_animate_nonsecure_state_;
DISALLOW_COPY_AND_ASSIGN(LocationBarView);
};

Powered by Google App Engine
This is Rietveld 408576698