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

Unified Diff: ash/rotator/screen_rotation_animator_observer.h

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: Add MultiLayerAnimatorTestController to controll test animation. Created 3 years, 9 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: ash/rotator/screen_rotation_animator_observer.h
diff --git a/ash/rotator/screen_rotation_animator_observer.h b/ash/rotator/screen_rotation_animator_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..54f4846d91b7cf5ad0221dcc0258713f4c772100
--- /dev/null
+++ b/ash/rotator/screen_rotation_animator_observer.h
@@ -0,0 +1,23 @@
+#ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H
+#define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+class ScreenRotationAnimator;
+
+class ASH_EXPORT ScreenRotationAnimatorObserver {
+ public:
+ ScreenRotationAnimatorObserver(){};
bruthig 2017/03/15 23:12:38 nit: I think the style guide wants a space between
wutao 2017/03/16 07:37:59 Done.
wutao 2017/03/16 07:40:50 I run cl format. It removes the space again.
bruthig 2017/03/16 20:41:57 Acknowledged.
+
+ virtual void OnEndedOrAbortedScreenRotationAnimation(
+ ScreenRotationAnimator* animator){};
+
+ protected:
+ virtual ~ScreenRotationAnimatorObserver(){};
+};
+
+} // namespace ash
+
+#endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H

Powered by Google App Engine
This is Rietveld 408576698