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

Unified Diff: ash/common/wm_shell.h

Issue 2491403003: chromeos: Move SystemTrayDelegate::RequestShutdown to WmShell (Closed)
Patch Set: Created 4 years, 1 month 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/mus/bridge/wm_shell_mus.h » ('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 9429268277fab9197d8e4133b99ae529bd6468a9..da548cf30f7e2251a1f53703d71670a1f14ea479 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -398,6 +398,12 @@ class ASH_EXPORT WmShell {
void AddLockStateObserver(LockStateObserver* observer);
void RemoveLockStateObserver(LockStateObserver* observer);
+ // Displays the shutdown animation and requests a system shutdown or system
+ // restart depending on the the state of the |RebootOnShutdown| device policy.
+ // TODO(mash): Remove this method and call LockStateController directly when
Daniel Erat 2016/11/10 19:24:53 just double-checked that there don't appear to be
+ // it is available to code in ash/common.
+ virtual void RequestShutdown() = 0;
+
void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate);
void SetPaletteDelegateForTesting(
std::unique_ptr<PaletteDelegate> palette_delegate);
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698