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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Callback for "setNotificationsDisabled" message. | 109 // Callback for "setNotificationsDisabled" message. |
110 void HandleSetNotificationsDisabled(const base::ListValue* args); | 110 void HandleSetNotificationsDisabled(const base::ListValue* args); |
111 | 111 |
112 // Register app launcher preferences. | 112 // Register app launcher preferences. |
113 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 113 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
114 | 114 |
115 // Records the given type of app launch for UMA. | 115 // Records the given type of app launch for UMA. |
116 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket, | 116 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket, |
117 extensions::Manifest::Type app_type); | 117 extensions::Manifest::Type app_type); |
118 | 118 |
| 119 // Records an app launch from the search view of the app list. |
| 120 static void RecordAppListSearchLaunch(const extensions::Extension* extension); |
| 121 |
| 122 // Records an app launch from the main view of the app list. |
| 123 static void RecordAppListMainLaunch(const extensions::Extension* extension); |
| 124 |
119 private: | 125 private: |
120 struct AppInstallInfo { | 126 struct AppInstallInfo { |
121 AppInstallInfo(); | 127 AppInstallInfo(); |
122 ~AppInstallInfo(); | 128 ~AppInstallInfo(); |
123 | 129 |
124 bool is_bookmark_app; | 130 bool is_bookmark_app; |
125 string16 title; | 131 string16 title; |
126 GURL app_url; | 132 GURL app_url; |
127 syncer::StringOrdinal page_ordinal; | 133 syncer::StringOrdinal page_ordinal; |
128 }; | 134 }; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // when the app is added to the page (via getAppsCallback or appAdded). | 214 // when the app is added to the page (via getAppsCallback or appAdded). |
209 std::string highlight_app_id_; | 215 std::string highlight_app_id_; |
210 | 216 |
211 // Used for favicon loading tasks. | 217 // Used for favicon loading tasks. |
212 CancelableTaskTracker cancelable_task_tracker_; | 218 CancelableTaskTracker cancelable_task_tracker_; |
213 | 219 |
214 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 220 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
215 }; | 221 }; |
216 | 222 |
217 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 223 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
OLD | NEW |