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

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

Issue 2032613002: Converts RootWindowLayoutManager to common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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') | ash/wm/root_window_layout_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 6
7 #include "ash/display/display_configuration_controller.h" 7 #include "ash/display/display_configuration_controller.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/session/session_state_delegate.h" 9 #include "ash/session/session_state_delegate.h"
10 #include "ash/shelf/shelf_delegate.h" 10 #include "ash/shelf/shelf_delegate.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/shell_delegate.h" 12 #include "ash/shell_delegate.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace test { 15 namespace test {
16 16
17 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {} 17 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {}
18 18
19 RootWindowLayoutManager* ShellTestApi::root_window_layout() {
20 return shell_->GetPrimaryRootWindowController()->root_window_layout();
21 }
22
23 SystemGestureEventFilter* ShellTestApi::system_gesture_event_filter() { 19 SystemGestureEventFilter* ShellTestApi::system_gesture_event_filter() {
24 return shell_->system_gesture_filter_.get(); 20 return shell_->system_gesture_filter_.get();
25 } 21 }
26 22
27 WorkspaceController* ShellTestApi::workspace_controller() { 23 WorkspaceController* ShellTestApi::workspace_controller() {
28 return shell_->GetPrimaryRootWindowController()->workspace_controller(); 24 return shell_->GetPrimaryRootWindowController()->workspace_controller();
29 } 25 }
30 26
31 ScreenPositionController* ShellTestApi::screen_position_controller() { 27 ScreenPositionController* ShellTestApi::screen_position_controller() {
32 return shell_->screen_position_controller_.get(); 28 return shell_->screen_position_controller_.get();
(...skipping 23 matching lines...) Expand all
56 shell_->shelf_delegate_.reset(delegate); 52 shell_->shelf_delegate_.reset(delegate);
57 } 53 }
58 54
59 void ShellTestApi::SetSessionStateDelegate( 55 void ShellTestApi::SetSessionStateDelegate(
60 SessionStateDelegate* session_state_delegate) { 56 SessionStateDelegate* session_state_delegate) {
61 shell_->session_state_delegate_.reset(session_state_delegate); 57 shell_->session_state_delegate_.reset(session_state_delegate);
62 } 58 }
63 59
64 } // namespace test 60 } // namespace test
65 } // namespace ash 61 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.h ('k') | ash/wm/root_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698