| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifdef CHROME_PERSONALIZATION | 5 #ifdef CHROME_PERSONALIZATION |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ | 7 #ifndef CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ |
| 8 #define CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ | 8 #define CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 // Callbacks from the page. | 164 // Callbacks from the page. |
| 165 void HandleSubmitAuth(const Value* value); | 165 void HandleSubmitAuth(const Value* value); |
| 166 void HandleSubmitMergeAndSync(const Value* value); | 166 void HandleSubmitMergeAndSync(const Value* value); |
| 167 | 167 |
| 168 // These functions control which part of the HTML is visible. | 168 // These functions control which part of the HTML is visible. |
| 169 void ShowGaiaLogin(const DictionaryValue& args); | 169 void ShowGaiaLogin(const DictionaryValue& args); |
| 170 void ShowGaiaSuccessAndClose(); | 170 void ShowGaiaSuccessAndClose(); |
| 171 void ShowGaiaSuccessAndSettingUp(); | 171 void ShowGaiaSuccessAndSettingUp(); |
| 172 void ShowMergeAndSync(); | 172 void ShowMergeAndSync(); |
| 173 void ShowMergeAndSyncDone(); | |
| 174 void ShowMergeAndSyncError(); | 173 void ShowMergeAndSyncError(); |
| 174 void ShowSetupDone(const std::wstring& user); |
| 175 void ShowFirstTimeDone(const std::wstring& user); |
| 175 | 176 |
| 176 void set_flow(SyncSetupFlow* flow) { | 177 void set_flow(SyncSetupFlow* flow) { |
| 177 flow_ = flow; | 178 flow_ = flow; |
| 178 } | 179 } |
| 179 | 180 |
| 180 private: | 181 private: |
| 181 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 182 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 182 const std::wstring& js); | 183 const std::wstring& js); |
| 183 SyncSetupFlow* flow_; | 184 SyncSetupFlow* flow_; |
| 184 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 185 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 #endif // CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ | 188 #endif // CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ |
| 188 #endif // CHROME_PERSONALIZATION | 189 #endif // CHROME_PERSONALIZATION |
| OLD | NEW |