| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_APP_LAUNCHER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/dom_ui/dom_ui.h" | 10 #include "chrome/browser/dom_ui/dom_ui.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Callback for the "setLaunchType" message. | 61 // Callback for the "setLaunchType" message. |
| 62 void HandleSetLaunchType(const ListValue* args); | 62 void HandleSetLaunchType(const ListValue* args); |
| 63 | 63 |
| 64 // Callback for the "uninstallApp" message. | 64 // Callback for the "uninstallApp" message. |
| 65 void HandleUninstallApp(const ListValue* args); | 65 void HandleUninstallApp(const ListValue* args); |
| 66 | 66 |
| 67 // Callback for the "hideAppPromo" message. | 67 // Callback for the "hideAppPromo" message. |
| 68 void HandleHideAppsPromo(const ListValue* args); | 68 void HandleHideAppsPromo(const ListValue* args); |
| 69 | 69 |
| 70 // Callback for the "createAppShortcut" message. |
| 71 void HandleCreateAppShortcut(const ListValue* args); |
| 72 |
| 70 private: | 73 private: |
| 71 // Records a web store launch in the appropriate histograms. |promo_active| | 74 // Records a web store launch in the appropriate histograms. |promo_active| |
| 72 // specifies if the web store promotion was active. | 75 // specifies if the web store promotion was active. |
| 73 static void RecordWebStoreLaunch(bool promo_active); | 76 static void RecordWebStoreLaunch(bool promo_active); |
| 74 | 77 |
| 75 // Records an app launch in the appropriate histograms. |promo_active| | 78 // Records an app launch in the appropriate histograms. |promo_active| |
| 76 // specifies if the web store promotion was active. | 79 // specifies if the web store promotion was active. |
| 77 static void RecordAppLaunch(bool promo_active); | 80 static void RecordAppLaunch(bool promo_active); |
| 78 | 81 |
| 79 // ExtensionInstallUI::Delegate implementation, used for receiving | 82 // ExtensionInstallUI::Delegate implementation, used for receiving |
| (...skipping 25 matching lines...) Expand all Loading... |
| 105 // The id of the extension we are prompting the user about. | 108 // The id of the extension we are prompting the user about. |
| 106 std::string extension_id_prompting_; | 109 std::string extension_id_prompting_; |
| 107 | 110 |
| 108 // Whether the promo is currently being shown. | 111 // Whether the promo is currently being shown. |
| 109 bool promo_active_; | 112 bool promo_active_; |
| 110 | 113 |
| 111 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 114 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ | 117 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ |
| OLD | NEW |