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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Callback for the "uninstallApp" message. | 65 // Callback for the "uninstallApp" message. |
66 void HandleUninstallApp(const ListValue* args); | 66 void HandleUninstallApp(const ListValue* args); |
67 | 67 |
68 // Callback for the "hideAppPromo" message. | 68 // Callback for the "hideAppPromo" message. |
69 void HandleHideAppsPromo(const ListValue* args); | 69 void HandleHideAppsPromo(const ListValue* args); |
70 | 70 |
71 // Callback for the "createAppShortcut" message. | 71 // Callback for the "createAppShortcut" message. |
72 void HandleCreateAppShortcut(const ListValue* args); | 72 void HandleCreateAppShortcut(const ListValue* args); |
73 | 73 |
| 74 // Callback for the 'reorderApps" message. |
| 75 void HandleReorderApps(const ListValue* args); |
| 76 |
74 private: | 77 private: |
75 // Records a web store launch in the appropriate histograms. |promo_active| | 78 // Records a web store 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 RecordWebStoreLaunch(bool promo_active); | 80 static void RecordWebStoreLaunch(bool promo_active); |
78 | 81 |
79 // Records an app launch in the appropriate histograms. |promo_active| | 82 // Records an app launch in the appropriate histograms. |promo_active| |
80 // specifies if the web store promotion was active. | 83 // specifies if the web store promotion was active. |
81 static void RecordAppLaunch(bool promo_active); | 84 static void RecordAppLaunch(bool promo_active); |
82 | 85 |
83 // ExtensionInstallUI::Delegate implementation, used for receiving | 86 // ExtensionInstallUI::Delegate implementation, used for receiving |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool promo_active_; | 119 bool promo_active_; |
117 | 120 |
118 // When true, we ignore changes to the underlying data rather than immediately | 121 // When true, we ignore changes to the underlying data rather than immediately |
119 // refreshing. This is useful when making many batch updates to avoid flicker. | 122 // refreshing. This is useful when making many batch updates to avoid flicker. |
120 bool ignore_changes_; | 123 bool ignore_changes_; |
121 | 124 |
122 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 125 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
123 }; | 126 }; |
124 | 127 |
125 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ | 128 #endif // CHROME_BROWSER_DOM_UI_APP_LAUNCHER_HANDLER_H_ |
OLD | NEW |