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

Unified Diff: ui/aura/remote_root_window_host_win.h

Issue 130223002: Have browser process shutdown metro viewer on Metro -> Metro restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: ui/aura/remote_root_window_host_win.h
diff --git a/ui/aura/remote_root_window_host_win.h b/ui/aura/remote_root_window_host_win.h
index a295109a8d5ab8f9f76a0265364b1e564e4da691..b589534e6ef1063d7f20fc23671f5dacfda039d4 100644
--- a/ui/aura/remote_root_window_host_win.h
+++ b/ui/aura/remote_root_window_host_win.h
@@ -86,14 +86,17 @@ AURA_EXPORT void HandleSelectFolder(const base::string16& title,
const SelectFolderCompletion& on_success,
const FileSelectionCanceled& on_failure);
-// Handles the activate desktop command for Metro Chrome Ash. The on_success
-// callback passed in is invoked when activation is completed.
-// The |ash_exit| parameter indicates whether the Ash process would be shutdown
-// after activating the desktop.
+// Handles the activate desktop command for Metro Chrome Ash. The |ash_exit|
+// parameter indicates whether the Ash process would be shutdown after
+// activating the desktop.
AURA_EXPORT void HandleActivateDesktop(
const base::FilePath& shortcut,
bool ash_exit);
+// Handles the metro exit command. Causes the metro viewer to close itself
+// gracefully.
+AURA_EXPORT void HandleMetroExit();
sky 2014/01/09 16:40:05 Why do we need this instead of having callers do a
zturner 2014/01/10 19:00:26 I believe it's because on component builds we have
+
// RootWindowHost implementaton that receives events from a different
// process. In the case of Windows this is the Windows 8 (aka Metro)
// frontend process, which forwards input events to this class.
@@ -121,9 +124,9 @@ class AURA_EXPORT RemoteRootWindowHostWin
// The |ash_exit| parameter indicates whether the Ash process would be
// shutdown after activating the desktop.
- void HandleActivateDesktop(
- const base::FilePath& shortcut,
- bool ash_exit);
+ void HandleActivateDesktop(const base::FilePath& shortcut, bool ash_exit);
+
+ void HandleMetroExit();
void HandleOpenFile(const base::string16& title,
const base::FilePath& default_path,

Powered by Google App Engine
This is Rietveld 408576698