Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base:: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 views::View* CreateMainContainer(); 498 views::View* CreateMainContainer();
499 499
500 // Creates a detail section (Shipping, Email, etc.) with the given label, 500 // Creates a detail section (Shipping, Email, etc.) with the given label,
501 // inputs View, and suggestion model. Relevant pointers are stored in |group|. 501 // inputs View, and suggestion model. Relevant pointers are stored in |group|.
502 void CreateDetailsSection(DialogSection section); 502 void CreateDetailsSection(DialogSection section);
503 503
504 // Creates the view that holds controls for inputing or selecting data for 504 // Creates the view that holds controls for inputing or selecting data for
505 // a given section. 505 // a given section.
506 views::View* CreateInputsContainer(DialogSection section); 506 views::View* CreateInputsContainer(DialogSection section);
507 507
508 // Creates a grid of textfield views for the given section, and stores them 508 // Creates a grid of inputs for the given section.
509 // in the appropriate DetailsGroup. The top level View in the hierarchy is 509 void InitInputsView(DialogSection section);
510 // returned.
511 views::View* InitInputsView(DialogSection section);
512 510
513 // Changes the function of the whole dialog. Currently this can show a loading 511 // Changes the function of the whole dialog. Currently this can show a loading
514 // shield, an embedded sign in web view, or the more typical detail input mode 512 // shield, an embedded sign in web view, or the more typical detail input mode
515 // (suggestions and form inputs). 513 // (suggestions and form inputs).
516 void ShowDialogInMode(DialogMode dialog_mode); 514 void ShowDialogInMode(DialogMode dialog_mode);
517 515
518 // Updates the given section to match the state provided by |delegate_|. If 516 // Updates the given section to match the state provided by |delegate_|. If
519 // |clobber_inputs| is true, the current state of the textfields will be 517 // |clobber_inputs| is true, the current state of the textfields will be
520 // ignored, otherwise their contents will be preserved. 518 // ignored, otherwise their contents will be preserved.
521 void UpdateSectionImpl(DialogSection section, bool clobber_inputs); 519 void UpdateSectionImpl(DialogSection section, bool clobber_inputs);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 // Call this when the size of anything in |contents_| might've changed. 571 // Call this when the size of anything in |contents_| might've changed.
574 void ContentsPreferredSizeChanged(); 572 void ContentsPreferredSizeChanged();
575 void DoContentsPreferredSizeChanged(); 573 void DoContentsPreferredSizeChanged();
576 574
577 // Gets the textfield view that is shown for the given |type| or NULL. 575 // Gets the textfield view that is shown for the given |type| or NULL.
578 views::Textfield* TextfieldForType(ServerFieldType type); 576 views::Textfield* TextfieldForType(ServerFieldType type);
579 577
580 // Gets the combobox view that is shown for the given |type|, or NULL. 578 // Gets the combobox view that is shown for the given |type|, or NULL.
581 views::Combobox* ComboboxForType(ServerFieldType type); 579 views::Combobox* ComboboxForType(ServerFieldType type);
582 580
581 // Returns the associated ServerFieldType for |combobox|.
582 ServerFieldType TypeForCombobox(const views::Combobox* combobox) const;
583
583 // Called when the details container changes in size or position. 584 // Called when the details container changes in size or position.
584 void DetailsContainerBoundsChanged(); 585 void DetailsContainerBoundsChanged();
585 586
586 // Sets the icons in |section| according to the field values. For example, 587 // Sets the icons in |section| according to the field values. For example,
587 // sets the credit card and CVC icons according to the credit card number. 588 // sets the credit card and CVC icons according to the credit card number.
588 void SetIconsForSection(DialogSection section); 589 void SetIconsForSection(DialogSection section);
589 590
590 // Iterates over all the inputs in |section| and sets their enabled/disabled 591 // Iterates over all the inputs in |section| and sets their enabled/disabled
591 // state. 592 // state.
592 void SetEditabilityForSection(DialogSection section); 593 void SetEditabilityForSection(DialogSection section);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 678
678 // Delegate for the sign-in dialog's webview. 679 // Delegate for the sign-in dialog's webview.
679 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; 680 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_;
680 681
681 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 682 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
682 }; 683 };
683 684
684 } // namespace autofill 685 } // namespace autofill
685 686
686 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 687 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698