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

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: . Created 7 years 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 views::View* CreateMainContainer(); 497 views::View* CreateMainContainer();
498 498
499 // Creates a detail section (Shipping, Email, etc.) with the given label, 499 // Creates a detail section (Shipping, Email, etc.) with the given label,
500 // inputs View, and suggestion model. Relevant pointers are stored in |group|. 500 // inputs View, and suggestion model. Relevant pointers are stored in |group|.
501 void CreateDetailsSection(DialogSection section); 501 void CreateDetailsSection(DialogSection section);
502 502
503 // Creates the view that holds controls for inputing or selecting data for 503 // Creates the view that holds controls for inputing or selecting data for
504 // a given section. 504 // a given section.
505 views::View* CreateInputsContainer(DialogSection section); 505 views::View* CreateInputsContainer(DialogSection section);
506 506
507 // Creates a grid of textfield views for the given section, and stores them 507 // Creates a grid of inputs for the given section.
508 // in the appropriate DetailsGroup. The top level View in the hierarchy is 508 void InitInputsView(DialogSection section);
509 // returned.
510 views::View* InitInputsView(DialogSection section);
511 509
512 // Changes the function of the whole dialog. Currently this can show a loading 510 // Changes the function of the whole dialog. Currently this can show a loading
513 // shield, an embedded sign in web view, or the more typical detail input mode 511 // shield, an embedded sign in web view, or the more typical detail input mode
514 // (suggestions and form inputs). 512 // (suggestions and form inputs).
515 void ShowDialogInMode(DialogMode dialog_mode); 513 void ShowDialogInMode(DialogMode dialog_mode);
516 514
517 // Updates the given section to match the state provided by |delegate_|. If 515 // Updates the given section to match the state provided by |delegate_|. If
518 // |clobber_inputs| is true, the current state of the textfields will be 516 // |clobber_inputs| is true, the current state of the textfields will be
519 // ignored, otherwise their contents will be preserved. 517 // ignored, otherwise their contents will be preserved.
520 void UpdateSectionImpl(DialogSection section, bool clobber_inputs); 518 void UpdateSectionImpl(DialogSection section, bool clobber_inputs);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 676
679 // Delegate for the sign-in dialog's webview. 677 // Delegate for the sign-in dialog's webview.
680 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; 678 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_;
681 679
682 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 680 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
683 }; 681 };
684 682
685 } // namespace autofill 683 } // namespace autofill
686 684
687 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 685 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698