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

Unified Diff: ash/rotator/screen_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/content/display/screen_orientation_controller_chromeos.cc ('k') | ash/rotator/screen_rotation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/screen_rotation.h
diff --git a/ash/rotator/screen_rotation.h b/ash/rotator/screen_rotation.h
deleted file mode 100644
index d709ab74d65f2ba449b02f4d7ce6c1340f4d829d..0000000000000000000000000000000000000000
--- a/ash/rotator/screen_rotation.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 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_SCREEN_ROTATION_H_
-#define ASH_SCREEN_ROTATION_H_
-
-#include "ash/ash_export.h"
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/compositor/layer_animation_element.h"
-#include "ui/gfx/geometry/point.h"
-
-namespace ui {
-class InterpolatedTransform;
-class Layer;
-}
-
-namespace aura {
-class RootWindow;
-}
-
-namespace ash {
-
-// A screen rotation represents a single transition from one screen 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 {
- 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;
-
- private:
- // Generates the intermediate transformation matrices used during the
- // animation.
- void InitTransform(ui::Layer* layer);
-
- // Implementation of ui::LayerAnimationDelegate
- void OnStart(ui::LayerAnimationDelegate* delegate) override;
- bool OnProgress(double t, ui::LayerAnimationDelegate* delegate) override;
- void OnGetTarget(TargetValue* target) const override;
- void OnAbort(ui::LayerAnimationDelegate* delegate) override;
-
- scoped_ptr<ui::InterpolatedTransform> interpolated_transform_;
-
- // The number of degrees to rotate.
- int degrees_;
-
- // The target origin.
- gfx::Point new_origin_;
-
- DISALLOW_COPY_AND_ASSIGN(ScreenRotation);
-};
-
-} // namespace ash
-
-#endif // ASH_SCREEN_ROTATION_H_
« no previous file with comments | « ash/content/display/screen_orientation_controller_chromeos.cc ('k') | ash/rotator/screen_rotation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698