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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Callback for the "setLaunchType" message. | 58 // Callback for the "setLaunchType" message. |
59 void HandleSetLaunchType(const ListValue* args); | 59 void HandleSetLaunchType(const ListValue* args); |
60 | 60 |
61 // Callback for the "uninstallApp" message. | 61 // Callback for the "uninstallApp" message. |
62 void HandleUninstallApp(const ListValue* args); | 62 void HandleUninstallApp(const ListValue* args); |
63 | 63 |
64 // Callback for the "hideAppPromo" message. | 64 // Callback for the "hideAppPromo" message. |
65 void HandleHideAppsPromo(const ListValue* args); | 65 void HandleHideAppsPromo(const ListValue* args); |
66 | 66 |
| 67 // Callback for the "recordWebStoreLaunch" message. |
| 68 void HandleRecordWebStoreLaunch(const ListValue* args); |
| 69 |
| 70 // Callback for the "recordAppLaunch" message. |
| 71 void HandleRecordAppLaunch(const ListValue* args); |
67 private: | 72 private: |
68 // ExtensionInstallUI::Delegate implementation, used for receiving | 73 // ExtensionInstallUI::Delegate implementation, used for receiving |
69 // notification about uninstall confirmation dialog selections. | 74 // notification about uninstall confirmation dialog selections. |
70 virtual void InstallUIProceed(); | 75 virtual void InstallUIProceed(); |
71 virtual void InstallUIAbort(); | 76 virtual void InstallUIAbort(); |
72 | 77 |
73 // Returns the ExtensionInstallUI object for this class, creating it if | 78 // Returns the ExtensionInstallUI object for this class, creating it if |
74 // needed. | 79 // needed. |
75 ExtensionInstallUI* GetExtensionInstallUI(); | 80 ExtensionInstallUI* GetExtensionInstallUI(); |
76 | 81 |
(...skipping 10 matching lines...) Expand all Loading... |
87 // Monitor extension preference changes so that the DOM UI can be notified. | 92 // Monitor extension preference changes so that the DOM UI can be notified. |
88 PrefChangeRegistrar pref_change_registrar_; | 93 PrefChangeRegistrar pref_change_registrar_; |
89 | 94 |
90 // Used to show confirmation UI for uninstalling/enabling extensions in | 95 // Used to show confirmation UI for uninstalling/enabling extensions in |
91 // incognito mode. | 96 // incognito mode. |
92 scoped_ptr<ExtensionInstallUI> install_ui_; | 97 scoped_ptr<ExtensionInstallUI> install_ui_; |
93 | 98 |
94 // The id of the extension we are prompting the user about. | 99 // The id of the extension we are prompting the user about. |
95 std::string extension_id_prompting_; | 100 std::string extension_id_prompting_; |
96 | 101 |
| 102 // Whether the promo is currently being shown |
| 103 bool promo_active_; |
| 104 |
97 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 105 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
98 }; | 106 }; |
99 | 107 |
100 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ | 108 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ |
OLD | NEW |