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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_view.h

Issue 12094069: [autofill] Hook the sign-in button up to required actions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isherman@ review Created 7 years, 10 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_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
7 7
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 10 matching lines...) Expand all
21 21
22 // Shows the dialog. 22 // Shows the dialog.
23 virtual void Show() = 0; 23 virtual void Show() = 0;
24 24
25 // Hides the dialog as if a user pressed cancel. 25 // Hides the dialog as if a user pressed cancel.
26 virtual void Hide() = 0; 26 virtual void Hide() = 0;
27 27
28 // Called when a different notification is available. 28 // Called when a different notification is available.
29 virtual void UpdateNotificationArea() = 0; 29 virtual void UpdateNotificationArea() = 0;
30 30
31 // Called when account details may have changed (user logs in to GAIA, creates
32 // a new account, etc.).
33 virtual void UpdateAccountChooser() = 0;
34
31 // Called when the contents of a section have changed. 35 // Called when the contents of a section have changed.
32 virtual void UpdateSection(DialogSection section) = 0; 36 virtual void UpdateSection(DialogSection section) = 0;
33 37
34 // Fills |output| with data the user manually input. 38 // Fills |output| with data the user manually input.
35 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; 39 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0;
36 40
37 // Returns the state of the "use billing address for shipping" checkbox. 41 // Returns the state of the "use billing address for shipping" checkbox.
38 virtual bool UseBillingForShipping() = 0; 42 virtual bool UseBillingForShipping() = 0;
39 43
40 // Returns true if new or edited autofill details should be saved. 44 // Returns true if new or edited autofill details should be saved.
41 virtual bool SaveDetailsLocally() = 0; 45 virtual bool SaveDetailsLocally() = 0;
42 46
43 // Triggers dialog to sign in to Google. 47 // Triggers dialog to sign in to Google.
44 // Returns a NotificationSource to be used to monitor for sign-in completion. 48 // Returns a NotificationSource to be used to monitor for sign-in completion.
45 virtual const content::NavigationController& ShowSignIn() = 0; 49 virtual const content::NavigationController& ShowSignIn() = 0;
46 50
47 // Closes out any signin UI and returns to normal operation. 51 // Closes out any signin UI and returns to normal operation.
48 virtual void HideSignIn() = 0; 52 virtual void HideSignIn() = 0;
49 53
50 // Factory function to create the dialog (implemented once per view 54 // Factory function to create the dialog (implemented once per view
51 // implementation). |controller| will own the created dialog. 55 // implementation). |controller| will own the created dialog.
52 static AutofillDialogView* Create(AutofillDialogController* controller); 56 static AutofillDialogView* Create(AutofillDialogController* controller);
53 }; 57 };
54 58
55 } // namespace autofill 59 } // namespace autofill
56 60
57 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 61 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698