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

Unified Diff: ash/common/wm_shell.h

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments, fix mash_unittests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 6d9498fe2e3dea5760139637be6c61a7f5e89fe4..ef8850a809a851cf5a8b28e1fec7ace632feb53b 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -30,17 +30,22 @@ class MruWindowTracker;
class SessionStateDelegate;
class ShellObserver;
class SystemTrayDelegate;
+class SystemTrayNotifier;
class WindowResizer;
class WindowSelectorController;
class WmActivationObserver;
class WmDisplayObserver;
-class SystemTrayNotifier;
+class WmRootWindowController;
class WmWindow;
namespace wm {
class WindowState;
}
+#if defined(OS_CHROMEOS)
+class LogoutConfirmationController;
+#endif
+
// Similar to ash::Shell. Eventually the two will be merged.
class ASH_EXPORT WmShell {
public:
@@ -157,6 +162,10 @@ class ASH_EXPORT WmShell {
virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0;
#if defined(OS_CHROMEOS)
+ LogoutConfirmationController* logout_confirmation_controller() {
+ return logout_confirmation_controller_.get();
+ }
+
// TODO(jamescook): Remove this when VirtualKeyboardController has been moved.
virtual void ToggleIgnoreExternalKeyboard() = 0;
#endif
@@ -165,9 +174,9 @@ class ASH_EXPORT WmShell {
WmShell();
virtual ~WmShell();
- // If |delegate| is not null, sets and initializes the delegate. If |delegate|
- // is null, shuts down and destroys the delegate.
+ // Sets and initializes the |delegate|.
void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
+ void DeleteSystemTrayDelegate();
void DeleteWindowSelectorController();
@@ -182,6 +191,10 @@ class ASH_EXPORT WmShell {
std::unique_ptr<WindowSelectorController> window_selector_controller_;
bool simulate_modal_window_open_for_testing_ = false;
+
+#if defined(OS_CHROMEOS)
+ std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
+#endif
};
} // namespace ash
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698