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

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

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: Rebased to commit. 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
« no previous file with comments | « ash/test/shell_test_api.h ('k') | ui/display/manager/display_manager.h » ('j') | 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 #include "ash/common/palette_delegate.h" 6 #include "ash/common/palette_delegate.h"
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"
9 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
10 #include "ash/shell.h" 9 #include "ash/shell.h"
11 10
12 namespace ash { 11 namespace ash {
13 namespace test { 12 namespace test {
14 13
15 ShellTestApi::ShellTestApi() : ShellTestApi(Shell::GetInstance()) {} 14 ShellTestApi::ShellTestApi() : ShellTestApi(Shell::GetInstance()) {}
16 15
17 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {} 16 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {}
18 17
(...skipping 10 matching lines...) Expand all
29 } 28 }
30 29
31 AshNativeCursorManager* ShellTestApi::ash_native_cursor_manager() { 30 AshNativeCursorManager* ShellTestApi::ash_native_cursor_manager() {
32 return shell_->native_cursor_manager_; 31 return shell_->native_cursor_manager_;
33 } 32 }
34 33
35 DragDropController* ShellTestApi::drag_drop_controller() { 34 DragDropController* ShellTestApi::drag_drop_controller() {
36 return shell_->drag_drop_controller_.get(); 35 return shell_->drag_drop_controller_.get();
37 } 36 }
38 37
39 void ShellTestApi::DisableDisplayAnimator() {
40 shell_->display_configuration_controller()->ResetAnimatorForTest();
41 }
42
43 void ShellTestApi::SetPaletteDelegate( 38 void ShellTestApi::SetPaletteDelegate(
44 std::unique_ptr<PaletteDelegate> palette_delegate) { 39 std::unique_ptr<PaletteDelegate> palette_delegate) {
45 shell_->palette_delegate_ = std::move(palette_delegate); 40 shell_->palette_delegate_ = std::move(palette_delegate);
46 } 41 }
47 42
48 void ShellTestApi::SetSessionStateDelegate( 43 void ShellTestApi::SetSessionStateDelegate(
49 SessionStateDelegate* session_state_delegate) { 44 SessionStateDelegate* session_state_delegate) {
50 shell_->session_state_delegate_.reset(session_state_delegate); 45 shell_->session_state_delegate_.reset(session_state_delegate);
51 } 46 }
52 47
53 } // namespace test 48 } // namespace test
54 } // namespace ash 49 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.h ('k') | ui/display/manager/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698