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

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

Issue 2118593002: mash: Migrate ShellDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 5 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/sysui/shell_delegate_mus.h ('k') | ash/test/test_keyboard_ui.cc » ('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/aura/wm_shell_aura.h"
7 #include "ash/common/session/session_state_delegate.h" 8 #include "ash/common/session/session_state_delegate.h"
9 #include "ash/common/shell_delegate.h"
8 #include "ash/display/display_configuration_controller.h" 10 #include "ash/display/display_configuration_controller.h"
9 #include "ash/root_window_controller.h" 11 #include "ash/root_window_controller.h"
10 #include "ash/shelf/shelf_delegate.h" 12 #include "ash/shelf/shelf_delegate.h"
11 #include "ash/shell.h" 13 #include "ash/shell.h"
12 #include "ash/shell_delegate.h"
13 14
14 namespace ash { 15 namespace ash {
15 namespace test { 16 namespace test {
16 17
17 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {} 18 ShellTestApi::ShellTestApi(Shell* shell) : shell_(shell) {}
18 19
19 SystemGestureEventFilter* ShellTestApi::system_gesture_event_filter() { 20 SystemGestureEventFilter* ShellTestApi::system_gesture_event_filter() {
20 return shell_->system_gesture_filter_.get(); 21 return shell_->system_gesture_filter_.get();
21 } 22 }
22 23
(...skipping 11 matching lines...) Expand all
34 35
35 ShelfModel* ShellTestApi::shelf_model() { 36 ShelfModel* ShellTestApi::shelf_model() {
36 return shell_->shelf_model_.get(); 37 return shell_->shelf_model_.get();
37 } 38 }
38 39
39 DragDropController* ShellTestApi::drag_drop_controller() { 40 DragDropController* ShellTestApi::drag_drop_controller() {
40 return shell_->drag_drop_controller_.get(); 41 return shell_->drag_drop_controller_.get();
41 } 42 }
42 43
43 app_list::AppListPresenter* ShellTestApi::app_list_presenter() { 44 app_list::AppListPresenter* ShellTestApi::app_list_presenter() {
44 return shell_->delegate_->GetAppListPresenter(); 45 return shell_->wm_shell_->delegate()->GetAppListPresenter();
45 } 46 }
46 47
47 void ShellTestApi::DisableDisplayAnimator() { 48 void ShellTestApi::DisableDisplayAnimator() {
48 shell_->display_configuration_controller()->ResetAnimatorForTest(); 49 shell_->display_configuration_controller()->ResetAnimatorForTest();
49 } 50 }
50 51
51 void ShellTestApi::SetShelfDelegate(ShelfDelegate* delegate) { 52 void ShellTestApi::SetShelfDelegate(ShelfDelegate* delegate) {
52 shell_->shelf_delegate_.reset(delegate); 53 shell_->shelf_delegate_.reset(delegate);
53 } 54 }
54 55
55 void ShellTestApi::SetSessionStateDelegate( 56 void ShellTestApi::SetSessionStateDelegate(
56 SessionStateDelegate* session_state_delegate) { 57 SessionStateDelegate* session_state_delegate) {
57 shell_->session_state_delegate_.reset(session_state_delegate); 58 shell_->session_state_delegate_.reset(session_state_delegate);
58 } 59 }
59 60
60 } // namespace test 61 } // namespace test
61 } // namespace ash 62 } // namespace ash
OLDNEW
« no previous file with comments | « ash/sysui/shell_delegate_mus.h ('k') | ash/test/test_keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698