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

Side by Side Diff: ash/rotator/test/screen_rotation_animator_test_api.cc

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: Fixes some nit. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
oshima 2017/03/16 20:13:10 remove "(c)" same for the rest
wutao 2017/03/17 00:01:04 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/rotator/test/screen_rotation_animator_test_api.h"
6
7 #include "ash/rotator/screen_rotation_animator.h"
8 #include "ui/compositor/layer.h"
9
10 namespace ash {
11 namespace test {
12
13 ScreenRotationAnimatorTestApi::ScreenRotationAnimatorTestApi(
14 ScreenRotationAnimator* animator)
15 : ui::test::MultiLayerAnimatorTestController(this), animator_(animator) {}
16
17 ScreenRotationAnimatorTestApi::~ScreenRotationAnimatorTestApi() {}
18
19 void ScreenRotationAnimatorTestApi::SetDisableAnimationTimers(
20 bool disable_timers) {
21 animator_->set_disable_animation_timers_for_test(disable_timers);
22 }
23
24 std::vector<ui::LayerAnimator*>
25 ScreenRotationAnimatorTestApi::GetLayerAnimators() {
26 std::vector<ui::LayerAnimator*> animators;
27 if (animator_->old_layer_tree_owner_) {
28 animators.insert(animators.end(),
29 animator_->GetOldLayerTreeRootLayer()->GetAnimator());
30 }
31 return animators;
32 }
33
34 } // namespace test
35 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698