| 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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // Refreshes the model on Wallet or sign-in state update. | 282 // Refreshes the model on Wallet or sign-in state update. |
| 283 void OnWalletOrSigninUpdate(); | 283 void OnWalletOrSigninUpdate(); |
| 284 | 284 |
| 285 // Should be called on the Wallet sign-in error. | 285 // Should be called on the Wallet sign-in error. |
| 286 void OnWalletSigninError(); | 286 void OnWalletSigninError(); |
| 287 | 287 |
| 288 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if | 288 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if |
| 289 // they have not already been calculated. | 289 // they have not already been calculated. |
| 290 void EnsureLegalDocumentsText(); | 290 void EnsureLegalDocumentsText(); |
| 291 | 291 |
| 292 // Fills |view_|'s corresponding |section| with data and shows manual inputs. |
| 293 void ShowEditingMode(DialogSection section); |
| 294 |
| 292 // Resets the DetailInputs* and |section_editing_state_| for a section. | 295 // Resets the DetailInputs* and |section_editing_state_| for a section. |
| 293 void ResetManualInputForSection(DialogSection section); | 296 void ResetManualInputForSection(DialogSection section); |
| 294 | 297 |
| 295 // Creates a DataModelWrapper item for the item that's checked in the | 298 // Creates a DataModelWrapper item for the item that's checked in the |
| 296 // suggestion model for |section|. This may represent Autofill | 299 // suggestion model for |section|. This may represent Autofill |
| 297 // data or Wallet data, depending on whether Wallet is currently enabled. | 300 // data or Wallet data, depending on whether Wallet is currently enabled. |
| 298 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); | 301 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); |
| 299 | 302 |
| 300 // Fills in |section|-related fields in |output_| according to the state of | 303 // Fills in |section|-related fields in |output_| according to the state of |
| 301 // |view_|. | 304 // |view_|. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 535 |
| 533 // Whether or not there was an error in the Autocheckout flow. | 536 // Whether or not there was an error in the Autocheckout flow. |
| 534 bool had_autocheckout_error_; | 537 bool had_autocheckout_error_; |
| 535 | 538 |
| 536 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 539 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 537 }; | 540 }; |
| 538 | 541 |
| 539 } // namespace autofill | 542 } // namespace autofill |
| 540 | 543 |
| 541 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 544 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |