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

Unified Diff: ash/rotator/window_rotation.h

Issue 975943002: Implemented screen rotation animation experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added ash-screen-rotation-animation entry to histograms.xml. Created 5 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/window_rotation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/window_rotation.h
diff --git a/ash/rotator/screen_rotation.h b/ash/rotator/window_rotation.h
similarity index 79%
rename from ash/rotator/screen_rotation.h
rename to ash/rotator/window_rotation.h
index d709ab74d65f2ba449b02f4d7ce6c1340f4d829d..d6f9f706d1842166bb8a55ffefb8f14e2f13026f 100644
--- a/ash/rotator/screen_rotation.h
+++ b/ash/rotator/window_rotation.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_SCREEN_ROTATION_H_
-#define ASH_SCREEN_ROTATION_H_
+#ifndef ASH_WINDOW_ROTATION_H_
+#define ASH_WINDOW_ROTATION_H_
#include "ash/ash_export.h"
#include "base/basictypes.h"
@@ -22,16 +22,16 @@ class RootWindow;
namespace ash {
-// A screen rotation represents a single transition from one screen orientation
+// A window rotation represents a single transition from one window orientation
// to another. The intended usage is that a new instance of the class is
// created for every transition. It is possible to update the target orientation
// in the middle of a transition.
-class ASH_EXPORT ScreenRotation : public ui::LayerAnimationElement {
+class ASH_EXPORT WindowRotation : public ui::LayerAnimationElement {
public:
// |degrees| are clockwise. |layer| is the target of the animation. Does not
// take ownership of |layer|.
- ScreenRotation(int degrees, ui::Layer* layer);
- ~ScreenRotation() override;
+ WindowRotation(int degrees, ui::Layer* layer);
+ ~WindowRotation() override;
private:
// Generates the intermediate transformation matrices used during the
@@ -52,9 +52,9 @@ class ASH_EXPORT ScreenRotation : public ui::LayerAnimationElement {
// The target origin.
gfx::Point new_origin_;
- DISALLOW_COPY_AND_ASSIGN(ScreenRotation);
+ DISALLOW_COPY_AND_ASSIGN(WindowRotation);
};
} // namespace ash
-#endif // ASH_SCREEN_ROTATION_H_
+#endif // ASH_WINDOW_ROTATION_H_
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/rotator/window_rotation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698