| 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 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 // HtmlDialogUIDelegate implementation. | 100 // HtmlDialogUIDelegate implementation. |
| 101 virtual std::wstring GetDialogTitle() const { | 101 virtual std::wstring GetDialogTitle() const { |
| 102 return l10n_util::GetString(IDS_SYNC_MY_BOOKMARKS_LABEL); | 102 return l10n_util::GetString(IDS_SYNC_MY_BOOKMARKS_LABEL); |
| 103 } | 103 } |
| 104 | 104 |
| 105 // HtmlDialogUIDelegate implementation. | 105 // HtmlDialogUIDelegate implementation. |
| 106 virtual bool IsDialogModal() const { | 106 virtual bool IsDialogModal() const { |
| 107 return false; | 107 return false; |
| 108 } | 108 } |
| 109 virtual bool ShouldShowDialogTitle() const { return true; } |
| 109 | 110 |
| 110 void OnUserSubmittedAuth(const std::string& username, | 111 void OnUserSubmittedAuth(const std::string& username, |
| 111 const std::string& password, | 112 const std::string& password, |
| 112 const std::string& captcha, | 113 const std::string& captcha, |
| 113 const std::string& access_code); | 114 const std::string& access_code); |
| 114 | 115 |
| 115 void OnUserConfigured(const SyncConfiguration& configuration); | 116 void OnUserConfigured(const SyncConfiguration& configuration); |
| 116 | 117 |
| 117 void OnPassphraseEntry(const std::string& passphrase); | 118 void OnPassphraseEntry(const std::string& passphrase); |
| 118 | 119 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 221 } |
| 221 | 222 |
| 222 private: | 223 private: |
| 223 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 224 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 224 const std::wstring& js); | 225 const std::wstring& js); |
| 225 SyncSetupFlow* flow_; | 226 SyncSetupFlow* flow_; |
| 226 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 227 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 230 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |