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

Unified Diff: apps/app_shim/app_shim_host_mac.h

Issue 14514003: Make OSX App Launcher Launchable from the Dock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase off cl14603002 Created 7 years, 8 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 fbfd0fa2573d7899fbe6bddec661dbe49bca348b..2cc3c87cb780a5396e9a67e43c150527c45a1154 100644
--- a/apps/app_shim/app_shim_host_mac.h
+++ b/apps/app_shim/app_shim_host_mac.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
+#include "chrome/browser/ui/app_list/app_list_dismiss_observer_mac.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "ipc/ipc_listener.h"
@@ -28,6 +29,7 @@ class Message;
// connected to the app shim is closed.
class AppShimHost : public IPC::Listener,
public IPC::Sender,
+ public chrome::AppListDismissObserverMac,
public content::NotificationObserver,
public base::NonThreadSafe {
public:
@@ -49,6 +51,7 @@ class AppShimHost : public IPC::Listener,
// IPC::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ virtual void OnChannelError() OVERRIDE;
// IPC::Sender implementation.
virtual bool Send(IPC::Message* message) OVERRIDE;
@@ -60,6 +63,9 @@ class AppShimHost : public IPC::Listener,
// app shim to send multiple launch messages.
void OnLaunchApp(std::string profile, std::string app_id);
+ // The app shim process is requesting that the app list should be shown.
+ void OnLaunchAppList();
+
// 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.)
@@ -74,12 +80,16 @@ class AppShimHost : public IPC::Listener,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // AppListDismissObserverMac override:
+ virtual void OnAppListDismissed() OVERRIDE;
+
// Closes the channel and destroys the AppShimHost.
void Close();
scoped_ptr<IPC::ChannelProxy> channel_;
std::string app_id_;
Profile* profile_;
+ bool is_app_list_;
content::NotificationRegistrar registrar_;
};
« 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