| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual std::string GetDialogArgs() const { | 61 virtual std::string GetDialogArgs() const { |
| 62 return dialog_start_args_; | 62 return dialog_start_args_; |
| 63 } | 63 } |
| 64 | 64 |
| 65 // HtmlDialogUIDelegate implementation. | 65 // HtmlDialogUIDelegate implementation. |
| 66 // A callback to notify the delegate that the dialog closed. | 66 // A callback to notify the delegate that the dialog closed. |
| 67 virtual void OnDialogClosed(const std::string& json_retval); | 67 virtual void OnDialogClosed(const std::string& json_retval); |
| 68 | 68 |
| 69 // HtmlDialogUIDelegate implementation. | 69 // HtmlDialogUIDelegate implementation. |
| 70 virtual std::wstring GetDialogTitle() const { | 70 virtual std::wstring GetDialogTitle() const { |
| 71 return l10n_util::GetString(IDS_SYNC_LOGIN_DIALOG_TITLE); | 71 return l10n_util::GetString(IDS_SYNC_MY_BOOKMARKS_LABEL); |
| 72 } | 72 } |
| 73 | 73 |
| 74 // HtmlDialogUIDelegate implementation. | 74 // HtmlDialogUIDelegate implementation. |
| 75 virtual bool IsDialogModal() const { | 75 virtual bool IsDialogModal() const { |
| 76 return false; | 76 return false; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void OnUserSubmittedAuth(const std::string& username, | 79 void OnUserSubmittedAuth(const std::string& username, |
| 80 const std::string& password) { | 80 const std::string& password) { |
| 81 service_->OnUserSubmittedAuth(username, password); | 81 service_->OnUserSubmittedAuth(username, password); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 179 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 180 const std::wstring& js); | 180 const std::wstring& js); |
| 181 SyncSetupFlow* flow_; | 181 SyncSetupFlow* flow_; |
| 182 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 182 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 #endif // CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ | 185 #endif // CHROME_BROWSER_VIEWS_SYNC_SYNC_SETUP_FLOW_H_ |
| 186 #endif // CHROME_PERSONALIZATION | 186 #endif // CHROME_PERSONALIZATION |
| OLD | NEW |