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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Other registered message callbacks with unused |args|. | 105 // Other registered message callbacks with unused |args|. |
106 void StopShowingAppLauncherPromo(const base::ListValue* args); | 106 void StopShowingAppLauncherPromo(const base::ListValue* args); |
107 void OnLearnMore(const base::ListValue* args); | 107 void OnLearnMore(const base::ListValue* args); |
108 | 108 |
109 private: | 109 private: |
110 struct AppInstallInfo { | 110 struct AppInstallInfo { |
111 AppInstallInfo(); | 111 AppInstallInfo(); |
112 ~AppInstallInfo(); | 112 ~AppInstallInfo(); |
113 | 113 |
114 bool is_bookmark_app; | |
115 base::string16 title; | 114 base::string16 title; |
116 GURL app_url; | 115 GURL app_url; |
117 syncer::StringOrdinal page_ordinal; | 116 syncer::StringOrdinal page_ordinal; |
118 }; | 117 }; |
119 | 118 |
120 // Reset some instance flags we use to track the currently uninstalling app. | 119 // Reset some instance flags we use to track the currently uninstalling app. |
121 void CleanupAfterUninstall(); | 120 void CleanupAfterUninstall(); |
122 | 121 |
123 // Prompts the user to re-enable the app for |extension_id|. | 122 // Prompts the user to re-enable the app for |extension_id|. |
124 void PromptToEnableApp(const std::string& extension_id); | 123 void PromptToEnableApp(const std::string& extension_id); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // when the app is added to the page (via getAppsCallback or appAdded). | 188 // when the app is added to the page (via getAppsCallback or appAdded). |
190 std::string highlight_app_id_; | 189 std::string highlight_app_id_; |
191 | 190 |
192 // Used for favicon loading tasks. | 191 // Used for favicon loading tasks. |
193 CancelableTaskTracker cancelable_task_tracker_; | 192 CancelableTaskTracker cancelable_task_tracker_; |
194 | 193 |
195 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 194 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
196 }; | 195 }; |
197 | 196 |
198 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 197 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
OLD | NEW |