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

Side by Side Diff: ash/test/shell_test_api.cc

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: 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
« ash/test/shell_test_api.h ('K') | « ash/test/shell_test_api.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/test/shell_test_api.h" 5 #include "ash/test/shell_test_api.h"
6 6
7 #include "ash/common/session/session_state_delegate.h" 7 #include "ash/common/session/session_state_delegate.h"
8 #include "ash/display/display_configuration_controller.h" 8 #include "ash/display/display_configuration_controller.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 DragDropController* ShellTestApi::drag_drop_controller() { 33 DragDropController* ShellTestApi::drag_drop_controller() {
34 return shell_->drag_drop_controller_.get(); 34 return shell_->drag_drop_controller_.get();
35 } 35 }
36 36
37 void ShellTestApi::DisableDisplayAnimator() { 37 void ShellTestApi::DisableDisplayAnimator() {
38 shell_->display_configuration_controller()->ResetAnimatorForTest(); 38 shell_->display_configuration_controller()->ResetAnimatorForTest();
39 } 39 }
40 40
41 ScreenRotationAnimator* ShellTestApi::GetOrMakeAnimatorByDisplayId(
42 int64_t display_id) {
43 return shell_->display_configuration_controller()
44 ->GetOrMakeAnimatorByDisplayId(display_id);
45 }
46
47 int ShellTestApi::DisplayIdAnimatorMapSize() {
48 return shell_->display_configuration_controller()
49 ->display_animator_map_.size();
50 }
51
41 void ShellTestApi::SetSessionStateDelegate( 52 void ShellTestApi::SetSessionStateDelegate(
42 SessionStateDelegate* session_state_delegate) { 53 SessionStateDelegate* session_state_delegate) {
43 shell_->session_state_delegate_.reset(session_state_delegate); 54 shell_->session_state_delegate_.reset(session_state_delegate);
44 } 55 }
45 56
46 } // namespace test 57 } // namespace test
47 } // namespace ash 58 } // namespace ash
OLDNEW
« ash/test/shell_test_api.h ('K') | « ash/test/shell_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698