| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 const SuggestionsMenuModel* SuggestionsMenuModelForSection( | 390 const SuggestionsMenuModel* SuggestionsMenuModelForSection( |
| 391 DialogSection section) const; | 391 DialogSection section) const; |
| 392 // And the reverse. | 392 // And the reverse. |
| 393 DialogSection SectionForSuggestionsMenuModel( | 393 DialogSection SectionForSuggestionsMenuModel( |
| 394 const SuggestionsMenuModel& model); | 394 const SuggestionsMenuModel& model); |
| 395 | 395 |
| 396 // Suggested text and icons for sections. Suggestion text is used to show an | 396 // Suggested text and icons for sections. Suggestion text is used to show an |
| 397 // abidged overview of the currently used suggestion. Extra text is used when | 397 // abidged overview of the currently used suggestion. Extra text is used when |
| 398 // part of a section is suggested but part must be manually input (e.g. during | 398 // part of a section is suggested but part must be manually input (e.g. during |
| 399 // a CVC challenge or when using Autofill's CC section [never stores CVC]). | 399 // a CVC challenge or when using Autofill's CC section [never stores CVC]). |
| 400 string16 SuggestionTextForSection(DialogSection section); | 400 bool SuggestionTextForSection(DialogSection section, |
| 401 gfx::Font::FontStyle SuggestionTextStyleForSection(DialogSection section) | 401 base::string16* vertically_compact, |
| 402 const; | 402 base::string16* horizontally_compact); |
| 403 string16 RequiredActionTextForSection(DialogSection section) const; | 403 string16 RequiredActionTextForSection(DialogSection section) const; |
| 404 gfx::Image SuggestionIconForSection(DialogSection section); | 404 gfx::Image SuggestionIconForSection(DialogSection section); |
| 405 string16 ExtraSuggestionTextForSection(DialogSection section) const; | 405 string16 ExtraSuggestionTextForSection(DialogSection section) const; |
| 406 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; | 406 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; |
| 407 | 407 |
| 408 // Loads profiles that can suggest data for |type|. |field_contents| is the | 408 // Loads profiles that can suggest data for |type|. |field_contents| is the |
| 409 // part the user has already typed. |inputs| is the rest of section. | 409 // part the user has already typed. |inputs| is the rest of section. |
| 410 // Identifying info is loaded into the last three outparams as well as | 410 // Identifying info is loaded into the last three outparams as well as |
| 411 // |popup_guids_|. | 411 // |popup_guids_|. |
| 412 void GetProfileSuggestions( | 412 void GetProfileSuggestions( |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 // show a bubble as the dialog closes to confirm a user's new card info was | 713 // show a bubble as the dialog closes to confirm a user's new card info was |
| 714 // saved. Never populated while incognito (as nothing's actually saved). | 714 // saved. Never populated while incognito (as nothing's actually saved). |
| 715 scoped_ptr<CreditCard> newly_saved_card_; | 715 scoped_ptr<CreditCard> newly_saved_card_; |
| 716 | 716 |
| 717 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 717 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 718 }; | 718 }; |
| 719 | 719 |
| 720 } // namespace autofill | 720 } // namespace autofill |
| 721 | 721 |
| 722 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 722 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |