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

Unified Diff: components/infobars/core/infobar_manager.h

Issue 2721783002: Disable info bar animations during automated testing. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « components/infobars/core/infobar_container.cc ('k') | components/infobars/core/infobar_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/infobar_manager.h
diff --git a/components/infobars/core/infobar_manager.h b/components/infobars/core/infobar_manager.h
index a7a57e26107a6864b5892731e3b3caab9cbc5621..9097dfc2d75bf38967426334b44a8d0d0caee0af 100644
--- a/components/infobars/core/infobar_manager.h
+++ b/components/infobars/core/infobar_manager.h
@@ -93,6 +93,8 @@ class InfoBarManager {
void AddObserver(Observer* obs);
void RemoveObserver(Observer* obs);
+ bool animations_enabled() const { return animations_enabled_; }
+
// Returns the active entry ID.
virtual int GetActiveEntryID() = 0;
@@ -104,6 +106,10 @@ class InfoBarManager {
virtual void OpenURL(const GURL& url, WindowOpenDisposition disposition) = 0;
protected:
+ void set_animations_enabled(bool animations_enabled) {
+ animations_enabled_ = animations_enabled;
+ }
+
// Notifies the observer in |observer_list_|.
// TODO(droger): Absorb these methods back into their callers once virtual
// overrides are removed (see http://crbug.com/354380).
@@ -121,7 +127,8 @@ class InfoBarManager {
void RemoveInfoBarInternal(InfoBar* infobar, bool animate);
InfoBars infobars_;
- bool infobars_enabled_;
+ bool infobars_enabled_ = true;
+ bool animations_enabled_ = true;
base::ObserverList<Observer, true> observer_list_;
« no previous file with comments | « components/infobars/core/infobar_container.cc ('k') | components/infobars/core/infobar_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698