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

Unified Diff: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm

Issue 2378623007: [Material] Update Material Security Verbose Decoration Flag (Closed)
Patch Set: fixed an animation error on cocoa 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/cocoa/location_bar/security_state_bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
index 6a5f597d93f95d3b18b216849c78c280b97d22ab..bfe850032ac51f8fdf96d550eb00d9ea7d89ac6e 100644
--- a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
@@ -131,6 +131,10 @@ bool SecurityStateBubbleDecoration::AnimatingOut() const {
return !animation_.IsShowing() && animation_.GetCurrentValue() != 0.0;
}
+void SecurityStateBubbleDecoration::ResetAnimation() {
+ animation_.Reset();
+}
+
//////////////////////////////////////////////////////////////////
// SecurityStateBubbleDecoration::LocationBarDecoration:

Powered by Google App Engine
This is Rietveld 408576698