| 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 // Resets the DetailInputs* and |section_editing_state_| for a section. | 292 // Clears previously entered manual input, shows editing UI if the current |
| 293 void ResetManualInputForSection(DialogSection section); | 293 // suggestion is invalid, and updates the |view_| (if it exists). |
| 294 void PrepareDetailInputsForSection(DialogSection section); |
| 294 | 295 |
| 295 // Creates a DataModelWrapper item for the item that's checked in the | 296 // Creates a DataModelWrapper item for the item that's checked in the |
| 296 // suggestion model for |section|. This may represent Autofill | 297 // suggestion model for |section|. This may represent Autofill |
| 297 // data or Wallet data, depending on whether Wallet is currently enabled. | 298 // data or Wallet data, depending on whether Wallet is currently enabled. |
| 298 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); | 299 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); |
| 299 | 300 |
| 300 // Fills in |section|-related fields in |output_| according to the state of | 301 // Fills in |section|-related fields in |output_| according to the state of |
| 301 // |view_|. | 302 // |view_|. |
| 302 void FillOutputForSection(DialogSection section); | 303 void FillOutputForSection(DialogSection section); |
| 303 // As above, but uses |compare| to determine whether a DetailInput matches | 304 // As above, but uses |compare| to determine whether a DetailInput matches |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 547 |
| 547 // Whether the latency to display to the UI was logged to UMA yet. | 548 // Whether the latency to display to the UI was logged to UMA yet. |
| 548 bool was_ui_latency_logged_; | 549 bool was_ui_latency_logged_; |
| 549 | 550 |
| 550 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 551 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 551 }; | 552 }; |
| 552 | 553 |
| 553 } // namespace autofill | 554 } // namespace autofill |
| 554 | 555 |
| 555 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 556 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |