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_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/sync_setup_handler2.h" | 9 #include "chrome/browser/ui/webui/sync_setup_handler2.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 protected: | 40 protected: |
41 virtual void StepWizardForShowSetupUI() OVERRIDE; | 41 virtual void StepWizardForShowSetupUI() OVERRIDE; |
42 | 42 |
43 virtual void ShowSetupUI() OVERRIDE; | 43 virtual void ShowSetupUI() OVERRIDE; |
44 | 44 |
45 private: | 45 private: |
46 // JavaScript callback handler to close the sync promo. | 46 // JavaScript callback handler to close the sync promo. |
47 void HandleCloseSyncPromo(const base::ListValue* args); | 47 void HandleCloseSyncPromo(const base::ListValue* args); |
48 | 48 |
| 49 // Gets the sync promo layout for the current sync promo version. |
| 50 int GetPromoVersion(); |
| 51 |
49 // JavaScript callback handler to initialize the sync promo. | 52 // JavaScript callback handler to initialize the sync promo. |
50 void HandleInitializeSyncPromo(const base::ListValue* args); | 53 void HandleInitializeSyncPromo(const base::ListValue* args); |
51 | 54 |
52 // JavaScript handler to record the duration for which the throbber was | 55 // JavaScript handler to record the duration for which the throbber was |
53 // visible during an attempted sign-in flow. | 56 // visible during an attempted sign-in flow. |
54 void HandleRecordThrobberTime(const base::ListValue* args); | 57 void HandleRecordThrobberTime(const base::ListValue* args); |
55 | 58 |
56 // JavaScript handler to record the number of times a user attempted to sign | 59 // JavaScript handler to record the number of times a user attempted to sign |
57 // in to chrome while they were on the sync promo page. | 60 // in to chrome while they were on the sync promo page. |
58 void HandleRecordSignInAttempts(const base::ListValue* args); | 61 void HandleRecordSignInAttempts(const base::ListValue* args); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Extra UMA histogram name to log stats to, based on the source for showing | 100 // Extra UMA histogram name to log stats to, based on the source for showing |
98 // the sync promo page. | 101 // the sync promo page. |
99 std::string histogram_name_; | 102 std::string histogram_name_; |
100 | 103 |
101 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler2); | 104 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler2); |
102 }; | 105 }; |
103 | 106 |
104 } // namespace options2 | 107 } // namespace options2 |
105 | 108 |
106 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ | 109 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ |
OLD | NEW |