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

Unified Diff: apps/app_shim/app_shim_host_mac.h

Issue 12723011: Giving focus to an app shim brings windows belonging to that app to the foreground. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | « apps/DEPS ('k') | apps/app_shim/app_shim_host_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_shim/app_shim_host_mac.h
diff --git a/apps/app_shim/app_shim_host_mac.h b/apps/app_shim/app_shim_host_mac.h
index 8ebc0cd179cd8d15c81df21b20941b8c1e8b1211..fbfd0fa2573d7899fbe6bddec661dbe49bca348b 100644
--- a/apps/app_shim/app_shim_host_mac.h
+++ b/apps/app_shim/app_shim_host_mac.h
@@ -60,6 +60,11 @@ class AppShimHost : public IPC::Listener,
// app shim to send multiple launch messages.
void OnLaunchApp(std::string profile, std::string app_id);
+ // Called when the app shim process notifies that the app should be brought
+ // to the front (i.e. the user has clicked on the app's icon in the dock or
+ // Cmd+Tabbed to it.)
+ void OnFocus();
+
bool LaunchAppImpl(const std::string& profile_dir, const std::string& app_id);
// The AppShimHost listens to the NOTIFICATION_EXTENSION_HOST_DESTROYED
« no previous file with comments | « apps/DEPS ('k') | apps/app_shim/app_shim_host_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698