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

Unified Diff: ash/system/toast/toast_overlay.h

Issue 1841563003: ARC Toast: Prevent onClosed event from being called multiple times (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 | « ash/system/toast/toast_manager_unittest.cc ('k') | ash/system/toast/toast_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/toast/toast_overlay.h
diff --git a/ash/system/toast/toast_overlay.h b/ash/system/toast/toast_overlay.h
index 1cd4fa9c5cc9b45b46dcfb522a4db2cd39c95263..febd893f09f60025a9e7c19f88af2919da236b83 100644
--- a/ash/system/toast/toast_overlay.h
+++ b/ash/system/toast/toast_overlay.h
@@ -28,7 +28,7 @@ class ToastManagerTest;
class ToastOverlayView;
class ToastOverlayButton;
-class ASH_EXPORT ToastOverlay : public ui::LayerAnimationObserver {
+class ASH_EXPORT ToastOverlay : public ui::ImplicitAnimationObserver {
public:
class ASH_EXPORT Delegate {
public:
@@ -48,15 +48,12 @@ class ASH_EXPORT ToastOverlay : public ui::LayerAnimationObserver {
// Returns the current bounds of the overlay, which is based on visibility.
gfx::Rect CalculateOverlayBounds();
- // gfx::LayerAnimationObserver overrides:
- void OnLayerAnimationEnded(ui::LayerAnimationSequence* sequence) override;
- void OnLayerAnimationAborted(ui::LayerAnimationSequence* sequence) override;
- void OnLayerAnimationScheduled(ui::LayerAnimationSequence* sequence) override;
+ void OnImplicitAnimationsScheduled() override;
+ void OnImplicitAnimationsCompleted() override;
views::Widget* widget_for_testing();
void ClickDismissButtonForTesting(const ui::Event& event);
- bool is_visible_ = false;
Delegate* const delegate_;
const std::string text_;
std::unique_ptr<views::Widget> overlay_widget_;
« no previous file with comments | « ash/system/toast/toast_manager_unittest.cc ('k') | ash/system/toast/toast_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698