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

Unified Diff: ash/rotator/screen_rotation_animator_observer.h

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: Rebased to commit. 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
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/rotator/screen_rotation_animator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5689a96d5d8663e4b83de986fdbca8e91cf06b9c
--- /dev/null
+++ b/ash/rotator/screen_rotation_animator_observer.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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() {}
+
+ // This will be called when the animation is ended or aborted.
+ virtual void OnScreenRotationAnimationFinished(
+ ScreenRotationAnimator* animator) = 0;
+
+ protected:
+ virtual ~ScreenRotationAnimatorObserver() {}
+};
+
+} // namespace ash
+
+#endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/rotator/screen_rotation_animator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698