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

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

Issue 2169533002: mash: Migrate shelf app list button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/shell/window_watcher.cc ('k') | ash/wm/overview/window_selector_unittest.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/aura/wm_shell_aura.h"
8 #include "ash/common/session/session_state_delegate.h" 8 #include "ash/common/session/session_state_delegate.h"
9 #include "ash/common/shell_delegate.h" 9 #include "ash/common/shell_delegate.h"
10 #include "ash/display/display_configuration_controller.h" 10 #include "ash/display/display_configuration_controller.h"
(...skipping 16 matching lines...) Expand all
27 27
28 ScreenPositionController* ShellTestApi::screen_position_controller() { 28 ScreenPositionController* ShellTestApi::screen_position_controller() {
29 return shell_->screen_position_controller_.get(); 29 return shell_->screen_position_controller_.get();
30 } 30 }
31 31
32 AshNativeCursorManager* ShellTestApi::ash_native_cursor_manager() { 32 AshNativeCursorManager* ShellTestApi::ash_native_cursor_manager() {
33 return shell_->native_cursor_manager_; 33 return shell_->native_cursor_manager_;
34 } 34 }
35 35
36 ShelfModel* ShellTestApi::shelf_model() { 36 ShelfModel* ShellTestApi::shelf_model() {
37 return shell_->shelf_model_.get(); 37 // TODO(jamescook): Remove this and access WmShell::shelf_model() directly.
38 return shell_->wm_shell_->shelf_model();
38 } 39 }
39 40
40 DragDropController* ShellTestApi::drag_drop_controller() { 41 DragDropController* ShellTestApi::drag_drop_controller() {
41 return shell_->drag_drop_controller_.get(); 42 return shell_->drag_drop_controller_.get();
42 } 43 }
43 44
44 app_list::AppListPresenter* ShellTestApi::app_list_presenter() { 45 app_list::AppListPresenter* ShellTestApi::app_list_presenter() {
45 return shell_->wm_shell_->delegate()->GetAppListPresenter(); 46 return shell_->wm_shell_->delegate()->GetAppListPresenter();
46 } 47 }
47 48
48 void ShellTestApi::DisableDisplayAnimator() { 49 void ShellTestApi::DisableDisplayAnimator() {
49 shell_->display_configuration_controller()->ResetAnimatorForTest(); 50 shell_->display_configuration_controller()->ResetAnimatorForTest();
50 } 51 }
51 52
52 void ShellTestApi::SetShelfDelegate(ShelfDelegate* delegate) { 53 void ShellTestApi::SetShelfDelegate(ShelfDelegate* delegate) {
53 shell_->shelf_delegate_.reset(delegate); 54 shell_->shelf_delegate_.reset(delegate);
54 } 55 }
55 56
56 void ShellTestApi::SetSessionStateDelegate( 57 void ShellTestApi::SetSessionStateDelegate(
57 SessionStateDelegate* session_state_delegate) { 58 SessionStateDelegate* session_state_delegate) {
58 shell_->session_state_delegate_.reset(session_state_delegate); 59 shell_->session_state_delegate_.reset(session_state_delegate);
59 } 60 }
60 61
61 } // namespace test 62 } // namespace test
62 } // namespace ash 63 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698