Chromium Code Reviews| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.h |
| diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.h b/chrome/browser/ui/webui/ntp/app_launcher_handler.h |
| index c68a176ecace1cfc5b772f8c320638ef6c33546c..2294e3b6982644abc7650caa6e4b22d8c385fdda 100644 |
| --- a/chrome/browser/ui/webui/ntp/app_launcher_handler.h |
| +++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.h |
| @@ -31,6 +31,24 @@ namespace extensions { |
| class AppNotification; |
| } |
| +class AppsPagePresenceHandler : public content::WebUIMessageHandler { |
|
Evan Stade
2013/01/23 23:34:24
why is this separate from AppLauncherHandler?
jeremya
2013/01/24 02:40:04
Because AppLauncherHandler isn't always present. P
|
| + public: |
| + AppsPagePresenceHandler(); |
| + virtual ~AppsPagePresenceHandler(); |
| + |
| + // WebUIMessageHandler implementation. |
| + virtual void RegisterMessages() OVERRIDE; |
| + |
| + // Callback for the "getShouldShowApps" message. |
| + void HandleGetShouldShowApps(const base::ListValue* args); |
| + |
| + private: |
| + // Callback for extensions::GetIsAppLauncherEnabled(). |
| + void GotIsAppLauncherEnabled(bool is_enabled); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AppsPagePresenceHandler); |
| +}; |
| + |
| // The handler for Javascript messages related to the "apps" view. |
| class AppLauncherHandler : public content::WebUIMessageHandler, |
| public ExtensionUninstallDialog::Delegate, |