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

Side by Side Diff: ash/common/wm_shell.h

Issue 2391253004: Use mojo Shelf interfaces for both mash and classic ash. (Closed)
Patch Set: Sync and rebase. Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef ASH_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ash/common/media_delegate.h" 14 #include "ash/common/media_delegate.h"
15 #include "ash/common/metrics/gesture_action_type.h" 15 #include "ash/common/metrics/gesture_action_type.h"
16 #include "ash/common/metrics/user_metrics_action.h" 16 #include "ash/common/metrics/user_metrics_action.h"
17 #include "ash/common/shelf/shelf_controller.h"
17 #include "ash/common/wm/lock_state_observer.h" 18 #include "ash/common/wm/lock_state_observer.h"
18 #include "base/observer_list.h" 19 #include "base/observer_list.h"
19 #include "ui/base/ui_base_types.h" 20 #include "ui/base/ui_base_types.h"
20 #include "ui/compositor/layer_type.h" 21 #include "ui/compositor/layer_type.h"
21 #include "ui/wm/public/window_types.h" 22 #include "ui/wm/public/window_types.h"
22 23
23 namespace base { 24 namespace base {
24 class SequencedWorkerPool; 25 class SequencedWorkerPool;
25 } 26 }
26 27
(...skipping 26 matching lines...) Expand all
53 class ImmersiveFullscreenController; 54 class ImmersiveFullscreenController;
54 class KeyEventWatcher; 55 class KeyEventWatcher;
55 class KeyboardBrightnessControlDelegate; 56 class KeyboardBrightnessControlDelegate;
56 class KeyboardUI; 57 class KeyboardUI;
57 class MaximizeModeController; 58 class MaximizeModeController;
58 class MruWindowTracker; 59 class MruWindowTracker;
59 class NewWindowDelegate; 60 class NewWindowDelegate;
60 class PaletteDelegate; 61 class PaletteDelegate;
61 class ScopedDisableInternalMouseAndKeyboard; 62 class ScopedDisableInternalMouseAndKeyboard;
62 class SessionStateDelegate; 63 class SessionStateDelegate;
64 class ShelfController;
63 class ShelfDelegate; 65 class ShelfDelegate;
64 class ShelfModel; 66 class ShelfModel;
65 class ShelfWindowWatcher; 67 class ShelfWindowWatcher;
66 class ShellDelegate; 68 class ShellDelegate;
67 class ShellObserver; 69 class ShellObserver;
68 class SystemTrayDelegate; 70 class SystemTrayDelegate;
69 class SystemTrayController; 71 class SystemTrayController;
70 class SystemTrayNotifier; 72 class SystemTrayNotifier;
71 class ToastManager; 73 class ToastManager;
72 class WallpaperController; 74 class WallpaperController;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return new_window_delegate_.get(); 140 return new_window_delegate_.get();
139 } 141 }
140 142
141 // NOTE: Prefer ScopedRootWindowForNewWindows when setting temporarily. 143 // NOTE: Prefer ScopedRootWindowForNewWindows when setting temporarily.
142 void set_root_window_for_new_windows(WmWindow* root) { 144 void set_root_window_for_new_windows(WmWindow* root) {
143 root_window_for_new_windows_ = root; 145 root_window_for_new_windows_ = root;
144 } 146 }
145 147
146 PaletteDelegate* palette_delegate() { return palette_delegate_.get(); } 148 PaletteDelegate* palette_delegate() { return palette_delegate_.get(); }
147 149
150 ShelfController* shelf_controller() { return shelf_controller_.get(); }
151
148 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); } 152 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); }
149 153
150 ShelfModel* shelf_model() { return shelf_model_.get(); } 154 ShelfModel* shelf_model() { return shelf_controller_->model(); }
151 155
152 SystemTrayController* system_tray_controller() { 156 SystemTrayController* system_tray_controller() {
153 return system_tray_controller_.get(); 157 return system_tray_controller_.get();
154 } 158 }
155 159
156 SystemTrayNotifier* system_tray_notifier() { 160 SystemTrayNotifier* system_tray_notifier() {
157 return system_tray_notifier_.get(); 161 return system_tray_notifier_.get();
158 } 162 }
159 163
160 SystemTrayDelegate* system_tray_delegate() { 164 SystemTrayDelegate* system_tray_delegate() {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 std::unique_ptr<FocusCycler> focus_cycler_; 459 std::unique_ptr<FocusCycler> focus_cycler_;
456 std::unique_ptr<ImmersiveContextAsh> immersive_context_; 460 std::unique_ptr<ImmersiveContextAsh> immersive_context_;
457 std::unique_ptr<KeyboardBrightnessControlDelegate> 461 std::unique_ptr<KeyboardBrightnessControlDelegate>
458 keyboard_brightness_control_delegate_; 462 keyboard_brightness_control_delegate_;
459 std::unique_ptr<KeyboardUI> keyboard_ui_; 463 std::unique_ptr<KeyboardUI> keyboard_ui_;
460 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; 464 std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
461 std::unique_ptr<MediaDelegate> media_delegate_; 465 std::unique_ptr<MediaDelegate> media_delegate_;
462 std::unique_ptr<MruWindowTracker> mru_window_tracker_; 466 std::unique_ptr<MruWindowTracker> mru_window_tracker_;
463 std::unique_ptr<NewWindowDelegate> new_window_delegate_; 467 std::unique_ptr<NewWindowDelegate> new_window_delegate_;
464 std::unique_ptr<PaletteDelegate> palette_delegate_; 468 std::unique_ptr<PaletteDelegate> palette_delegate_;
469 std::unique_ptr<ShelfController> shelf_controller_;
465 std::unique_ptr<ShelfDelegate> shelf_delegate_; 470 std::unique_ptr<ShelfDelegate> shelf_delegate_;
466 std::unique_ptr<ShelfModel> shelf_model_;
467 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; 471 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_;
468 std::unique_ptr<SystemTrayController> system_tray_controller_; 472 std::unique_ptr<SystemTrayController> system_tray_controller_;
469 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 473 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
470 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 474 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
471 std::unique_ptr<ToastManager> toast_manager_; 475 std::unique_ptr<ToastManager> toast_manager_;
472 std::unique_ptr<WallpaperController> wallpaper_controller_; 476 std::unique_ptr<WallpaperController> wallpaper_controller_;
473 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; 477 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_;
474 std::unique_ptr<WindowCycleController> window_cycle_controller_; 478 std::unique_ptr<WindowCycleController> window_cycle_controller_;
475 std::unique_ptr<WindowSelectorController> window_selector_controller_; 479 std::unique_ptr<WindowSelectorController> window_selector_controller_;
476 480
477 base::ObserverList<LockStateObserver> lock_state_observers_; 481 base::ObserverList<LockStateObserver> lock_state_observers_;
478 482
479 // See comment for GetRootWindowForNewWindows(). 483 // See comment for GetRootWindowForNewWindows().
480 WmWindow* root_window_for_new_windows_ = nullptr; 484 WmWindow* root_window_for_new_windows_ = nullptr;
481 WmWindow* scoped_root_window_for_new_windows_ = nullptr; 485 WmWindow* scoped_root_window_for_new_windows_ = nullptr;
482 486
483 bool simulate_modal_window_open_for_testing_ = false; 487 bool simulate_modal_window_open_for_testing_ = false;
484 488
485 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 489 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
486 490
487 #if defined(OS_CHROMEOS) 491 #if defined(OS_CHROMEOS)
488 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 492 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
489 #endif 493 #endif
490 }; 494 };
491 495
492 } // namespace ash 496 } // namespace ash
493 497
494 #endif // ASH_COMMON_WM_SHELL_H_ 498 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698