| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/system/overview/overview_button_tray.h" | 5 #include "ash/system/overview/overview_button_tray.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/rotator/screen_rotation_animator.h" | 10 #include "ash/rotator/screen_rotation_animator.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 new ui::ScopedAnimationDurationScaleMode( | 182 new ui::ScopedAnimationDurationScaleMode( |
| 183 ui::ScopedAnimationDurationScaleMode::SLOW_DURATION)); | 183 ui::ScopedAnimationDurationScaleMode::SLOW_DURATION)); |
| 184 GetTray()->SetVisible(false); | 184 GetTray()->SetVisible(false); |
| 185 | 185 |
| 186 // ScreenRotationAnimator copies the current layers, and deletes them upon | 186 // ScreenRotationAnimator copies the current layers, and deletes them upon |
| 187 // completion. Allow its animation to complete first. | 187 // completion. Allow its animation to complete first. |
| 188 scoped_ptr<ui::ScopedAnimationDurationScaleMode> rotate_duration( | 188 scoped_ptr<ui::ScopedAnimationDurationScaleMode> rotate_duration( |
| 189 new ui::ScopedAnimationDurationScaleMode( | 189 new ui::ScopedAnimationDurationScaleMode( |
| 190 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)); | 190 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)); |
| 191 ash::ScreenRotationAnimator(gfx::Display::InternalDisplayId()) | 191 ash::ScreenRotationAnimator(gfx::Display::InternalDisplayId()) |
| 192 .Rotate(gfx::Display::ROTATE_270); | 192 .Rotate(gfx::Display::ROTATE_270, gfx::Display::ROTATION_SOURCE_ACTIVE); |
| 193 | 193 |
| 194 RunAllPendingInMessageLoop(); | 194 RunAllPendingInMessageLoop(); |
| 195 EXPECT_FALSE(GetTray()->visible()); | 195 EXPECT_FALSE(GetTray()->visible()); |
| 196 } | 196 } |
| 197 | 197 |
| 198 } // namespace ash | 198 } // namespace ash |
| OLD | NEW |