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