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

Side by Side Diff: ash/rotator/screen_rotation_animator.h

Issue 975943002: Implemented screen rotation animation experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed outstanding comments from Patch set 1 & 2. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
7
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "ui/gfx/display.h"
11
12 namespace ash {
13
14 // Utility to perform a screen rotation with an animation.
15 class ASH_EXPORT ScreenRotationAnimator {
16 public:
17 explicit ScreenRotationAnimator(int64 display_id);
18
19 explicit ScreenRotationAnimator(gfx::Display display);
20 ~ScreenRotationAnimator();
21
22 // Rotates |display_| to the |new_rotation| orientation.
23 void Rotate(gfx::Display::Rotation new_rotation);
24
25 private:
26 // The Display to rotate.
27 gfx::Display display_;
oshima 2015/03/06 20:59:32 looks like it's using display_id only. Can you jus
bruthig 2015/03/09 21:04:27 Done.
28
29 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator);
30 };
31
32 } // namespace ash
33
34 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698