Chromium Code Reviews| 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 void HandleGenerateAppForLink(const base::ListValue* args); | 96 void HandleGenerateAppForLink(const base::ListValue* args); |
| 97 | 97 |
| 98 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a | 98 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a |
| 99 // launch source (integer), and if the URL represents an app, records the | 99 // launch source (integer), and if the URL represents an app, records the |
| 100 // action for UMA. | 100 // action for UMA. |
| 101 void HandleRecordAppLaunchByUrl(const base::ListValue* args); | 101 void HandleRecordAppLaunchByUrl(const base::ListValue* args); |
| 102 | 102 |
| 103 // Callback for "stopShowingAppLauncherPromo" message. | 103 // Callback for "stopShowingAppLauncherPromo" message. |
| 104 void StopShowingAppLauncherPromo(const base::ListValue* args); | 104 void StopShowingAppLauncherPromo(const base::ListValue* args); |
| 105 | 105 |
| 106 // Callback for "onLearnMore" message. | |
| 107 void OnLearnMore(const base::ListValue* args); | |
|
miket_OOO
2013/06/25 15:57:25
I know you were just following the pattern, but th
MAD
2013/06/26 03:33:40
Done.
| |
| 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(user_prefs::PrefRegistrySyncable* registry); | 116 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
| 114 | 117 |
| 115 // Records the given type of app launch for UMA. | 118 // Records the given type of app launch for UMA. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 // when the app is added to the page (via getAppsCallback or appAdded). | 217 // when the app is added to the page (via getAppsCallback or appAdded). |
| 215 std::string highlight_app_id_; | 218 std::string highlight_app_id_; |
| 216 | 219 |
| 217 // Used for favicon loading tasks. | 220 // Used for favicon loading tasks. |
| 218 CancelableTaskTracker cancelable_task_tracker_; | 221 CancelableTaskTracker cancelable_task_tracker_; |
| 219 | 222 |
| 220 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 223 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| 221 }; | 224 }; |
| 222 | 225 |
| 223 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 226 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| OLD | NEW |