| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void HandleSaveAppPageName(const base::ListValue* args); | 96 void HandleSaveAppPageName(const base::ListValue* args); |
| 97 | 97 |
| 98 // Callback for the "generateAppForLink" message. | 98 // Callback for the "generateAppForLink" message. |
| 99 void HandleGenerateAppForLink(const base::ListValue* args); | 99 void HandleGenerateAppForLink(const base::ListValue* args); |
| 100 | 100 |
| 101 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a | 101 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a |
| 102 // launch source (integer), and if the URL represents an app, records the | 102 // launch source (integer), and if the URL represents an app, records the |
| 103 // action for UMA. | 103 // action for UMA. |
| 104 void HandleRecordAppLaunchByURL(const base::ListValue* args); | 104 void HandleRecordAppLaunchByURL(const base::ListValue* args); |
| 105 | 105 |
| 106 // Callback for the "recordAppLaunchedFromIndex" message. |
| 107 void HandleRecordAppLaunchedFromIndex(const base::ListValue* args); |
| 108 |
| 106 // Callback for "closeNotification" message. | 109 // Callback for "closeNotification" message. |
| 107 void HandleNotificationClose(const base::ListValue* args); | 110 void HandleNotificationClose(const base::ListValue* args); |
| 108 | 111 |
| 109 // Callback for "setNotificationsDisabled" message. | 112 // Callback for "setNotificationsDisabled" message. |
| 110 void HandleSetNotificationsDisabled(const base::ListValue* args); | 113 void HandleSetNotificationsDisabled(const base::ListValue* args); |
| 111 | 114 |
| 112 // Register app launcher preferences. | 115 // Register app launcher preferences. |
| 113 static void RegisterUserPrefs(PrefService* pref_service); | 116 static void RegisterUserPrefs(PrefService* pref_service); |
| 114 | 117 |
| 115 private: | 118 private: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // when the app is added to the page (via getAppsCallback or appAdded). | 208 // when the app is added to the page (via getAppsCallback or appAdded). |
| 206 std::string highlight_app_id_; | 209 std::string highlight_app_id_; |
| 207 | 210 |
| 208 // Hold state for favicon requests. | 211 // Hold state for favicon requests. |
| 209 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; | 212 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; |
| 210 | 213 |
| 211 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 214 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| 212 }; | 215 }; |
| 213 | 216 |
| 214 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 217 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| OLD | NEW |