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_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/sync_setup_handler.h" | 9 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 protected: | 37 protected: |
38 virtual void StepWizardForShowSetupUI() OVERRIDE; | 38 virtual void StepWizardForShowSetupUI() OVERRIDE; |
39 | 39 |
40 virtual void ShowSetupUI() OVERRIDE; | 40 virtual void ShowSetupUI() OVERRIDE; |
41 | 41 |
42 private: | 42 private: |
43 // JavaScript callback handler to close the sync promo. | 43 // JavaScript callback handler to close the sync promo. |
44 void HandleCloseSyncPromo(const base::ListValue* args); | 44 void HandleCloseSyncPromo(const base::ListValue* args); |
45 | 45 |
| 46 // Gets the sync promo layout for the current sync promo version. |
| 47 int GetPromoVersion(); |
| 48 |
46 // JavaScript callback handler to initialize the sync promo. | 49 // JavaScript callback handler to initialize the sync promo. |
47 void HandleInitializeSyncPromo(const base::ListValue* args); | 50 void HandleInitializeSyncPromo(const base::ListValue* args); |
48 | 51 |
49 // JavaScript handler to record the duration for which the throbber was | 52 // JavaScript handler to record the duration for which the throbber was |
50 // visible during an attempted sign-in flow. | 53 // visible during an attempted sign-in flow. |
51 void HandleRecordThrobberTime(const base::ListValue* args); | 54 void HandleRecordThrobberTime(const base::ListValue* args); |
52 | 55 |
53 // JavaScript handler to record the number of times a user attempted to sign | 56 // JavaScript handler to record the number of times a user attempted to sign |
54 // in to chrome while they were on the sync promo page. | 57 // in to chrome while they were on the sync promo page. |
55 void HandleRecordSignInAttempts(const base::ListValue* args); | 58 void HandleRecordSignInAttempts(const base::ListValue* args); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool window_already_closed_; | 92 bool window_already_closed_; |
90 | 93 |
91 // Extra UMA histogram name to log stats to, based on the source for showing | 94 // Extra UMA histogram name to log stats to, based on the source for showing |
92 // the sync promo page. | 95 // the sync promo page. |
93 std::string histogram_name_; | 96 std::string histogram_name_; |
94 | 97 |
95 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); | 98 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); |
96 }; | 99 }; |
97 | 100 |
98 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 101 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
OLD | NEW |