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

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

Issue 2545723003: ash: Add SessionController/Client mojo interfaces (Closed)
Patch Set: use a default to fix null avatar image failures Created 4 years 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>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class ImmersiveContextAsh; 48 class ImmersiveContextAsh;
49 class ImmersiveFullscreenController; 49 class ImmersiveFullscreenController;
50 class KeyEventWatcher; 50 class KeyEventWatcher;
51 class KeyboardBrightnessControlDelegate; 51 class KeyboardBrightnessControlDelegate;
52 class KeyboardUI; 52 class KeyboardUI;
53 class LocaleNotificationController; 53 class LocaleNotificationController;
54 class MaximizeModeController; 54 class MaximizeModeController;
55 class MruWindowTracker; 55 class MruWindowTracker;
56 class PaletteDelegate; 56 class PaletteDelegate;
57 class ScopedDisableInternalMouseAndKeyboard; 57 class ScopedDisableInternalMouseAndKeyboard;
58 class SessionController;
58 class SessionStateDelegate; 59 class SessionStateDelegate;
59 class ShelfController; 60 class ShelfController;
60 class ShelfDelegate; 61 class ShelfDelegate;
61 class ShelfModel; 62 class ShelfModel;
62 class ShelfWindowWatcher; 63 class ShelfWindowWatcher;
63 class ShellDelegate; 64 class ShellDelegate;
64 class ShellObserver; 65 class ShellObserver;
65 class ShutdownController; 66 class ShutdownController;
66 class SystemTrayDelegate; 67 class SystemTrayDelegate;
67 class SystemTrayController; 68 class SystemTrayController;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); } 185 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); }
185 186
186 WindowCycleController* window_cycle_controller() { 187 WindowCycleController* window_cycle_controller() {
187 return window_cycle_controller_.get(); 188 return window_cycle_controller_.get();
188 } 189 }
189 190
190 WindowSelectorController* window_selector_controller() { 191 WindowSelectorController* window_selector_controller() {
191 return window_selector_controller_.get(); 192 return window_selector_controller_.get();
192 } 193 }
193 194
195 SessionController* session_controller() { return session_controller_.get(); }
196
194 // Returns true when ash is running as a service_manager::Service. 197 // Returns true when ash is running as a service_manager::Service.
195 virtual bool IsRunningInMash() const = 0; 198 virtual bool IsRunningInMash() const = 0;
196 199
197 virtual WmWindow* NewWindow(ui::wm::WindowType window_type, 200 virtual WmWindow* NewWindow(ui::wm::WindowType window_type,
198 ui::LayerType layer_type) = 0; 201 ui::LayerType layer_type) = 0;
199 202
200 virtual WmWindow* GetFocusedWindow() = 0; 203 virtual WmWindow* GetFocusedWindow() = 0;
201 virtual WmWindow* GetActiveWindow() = 0; 204 virtual WmWindow* GetActiveWindow() = 0;
202 205
203 virtual WmWindow* GetCaptureWindow() = 0; 206 virtual WmWindow* GetCaptureWindow() = 0;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 std::unique_ptr<ShutdownController> shutdown_controller_; 499 std::unique_ptr<ShutdownController> shutdown_controller_;
497 std::unique_ptr<SystemTrayController> system_tray_controller_; 500 std::unique_ptr<SystemTrayController> system_tray_controller_;
498 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 501 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
499 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 502 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
500 std::unique_ptr<ToastManager> toast_manager_; 503 std::unique_ptr<ToastManager> toast_manager_;
501 std::unique_ptr<WallpaperController> wallpaper_controller_; 504 std::unique_ptr<WallpaperController> wallpaper_controller_;
502 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; 505 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_;
503 std::unique_ptr<WindowCycleController> window_cycle_controller_; 506 std::unique_ptr<WindowCycleController> window_cycle_controller_;
504 std::unique_ptr<WindowSelectorController> window_selector_controller_; 507 std::unique_ptr<WindowSelectorController> window_selector_controller_;
505 std::unique_ptr<ui::devtools::UiDevToolsServer> devtools_server_; 508 std::unique_ptr<ui::devtools::UiDevToolsServer> devtools_server_;
509 std::unique_ptr<SessionController> session_controller_;
James Cook 2016/12/01 23:01:43 super nit: alphabetize, unless construction order
xiyuan 2016/12/06 00:46:34 Done.
506 510
507 base::ObserverList<LockStateObserver> lock_state_observers_; 511 base::ObserverList<LockStateObserver> lock_state_observers_;
508 512
509 // See comment for GetRootWindowForNewWindows(). 513 // See comment for GetRootWindowForNewWindows().
510 WmWindow* root_window_for_new_windows_ = nullptr; 514 WmWindow* root_window_for_new_windows_ = nullptr;
511 WmWindow* scoped_root_window_for_new_windows_ = nullptr; 515 WmWindow* scoped_root_window_for_new_windows_ = nullptr;
512 516
513 bool simulate_modal_window_open_for_testing_ = false; 517 bool simulate_modal_window_open_for_testing_ = false;
514 518
515 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 519 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
516 520
517 #if defined(OS_CHROMEOS) 521 #if defined(OS_CHROMEOS)
518 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 522 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
519 std::unique_ptr<VpnList> vpn_list_; 523 std::unique_ptr<VpnList> vpn_list_;
520 #endif 524 #endif
521 }; 525 };
522 526
523 } // namespace ash 527 } // namespace ash
524 528
525 #endif // ASH_COMMON_WM_SHELL_H_ 529 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698