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

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

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 3 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_view_delegate.h" 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 30 matching lines...) Expand all
41 // The matching call to UpdatesStarted. 41 // The matching call to UpdatesStarted.
42 virtual void UpdatesFinished() = 0; 42 virtual void UpdatesFinished() = 0;
43 43
44 // Called when a different notification is available. 44 // Called when a different notification is available.
45 virtual void UpdateNotificationArea() = 0; 45 virtual void UpdateNotificationArea() = 0;
46 46
47 // Called when account details may have changed (user logs in to GAIA, creates 47 // Called when account details may have changed (user logs in to GAIA, creates
48 // a new account, etc.). 48 // a new account, etc.).
49 virtual void UpdateAccountChooser() = 0; 49 virtual void UpdateAccountChooser() = 0;
50 50
51 // Updates the container displaying detailed steps for Autocheckout. Called
52 // as progress is made through the buyflow.
53 virtual void UpdateAutocheckoutStepsArea() = 0;
54
55 // Updates the button strip based on the current controller state. 51 // Updates the button strip based on the current controller state.
56 virtual void UpdateButtonStrip() = 0; 52 virtual void UpdateButtonStrip() = 0;
57 53
58 // Updates the container for the detail inputs. Used to hide this container 54 // Updates the container for the detail inputs.
59 // while Autocheckout is running.
60 virtual void UpdateDetailArea() = 0; 55 virtual void UpdateDetailArea() = 0;
61 56
62 // Updates the validity status of the detail inputs. 57 // Updates the validity status of the detail inputs.
63 virtual void UpdateForErrors() = 0; 58 virtual void UpdateForErrors() = 0;
64 59
65 // Called when the contents of a section have changed. 60 // Called when the contents of a section have changed.
66 virtual void UpdateSection(DialogSection section) = 0; 61 virtual void UpdateSection(DialogSection section) = 0;
67 62
68 // Fills the given section with Autofill data that was triggered by a user 63 // Fills the given section with Autofill data that was triggered by a user
69 // interaction with |originating_input|. 64 // interaction with |originating_input|.
(...skipping 11 matching lines...) Expand all
81 // Returns true if new or edited autofill details should be saved. 76 // Returns true if new or edited autofill details should be saved.
82 virtual bool SaveDetailsLocally() = 0; 77 virtual bool SaveDetailsLocally() = 0;
83 78
84 // Triggers dialog to sign in to Google. 79 // Triggers dialog to sign in to Google.
85 // Returns a NotificationSource to be used to monitor for sign-in completion. 80 // Returns a NotificationSource to be used to monitor for sign-in completion.
86 virtual const content::NavigationController* ShowSignIn() = 0; 81 virtual const content::NavigationController* ShowSignIn() = 0;
87 82
88 // Closes out any sign-in UI and returns to normal operation. 83 // Closes out any sign-in UI and returns to normal operation.
89 virtual void HideSignIn() = 0; 84 virtual void HideSignIn() = 0;
90 85
91 // Updates the progress bar based on the Autocheckout progress. |value| should
92 // be in [0.0, 1.0].
93 virtual void UpdateProgressBar(double value) = 0;
94
95 // Called when the active suggestions data model changed. 86 // Called when the active suggestions data model changed.
96 virtual void ModelChanged() = 0; 87 virtual void ModelChanged() = 0;
97 88
98 // Returns an object that can be used to test that the view is behaving as 89 // Returns an object that can be used to test that the view is behaving as
99 // expected. 90 // expected.
100 virtual TestableAutofillDialogView* GetTestableView() = 0; 91 virtual TestableAutofillDialogView* GetTestableView() = 0;
101 92
102 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a 93 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a
103 // resize. |pref_size| is the new preferred size of the sign-in page. 94 // resize. |pref_size| is the new preferred size of the sign-in page.
104 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; 95 virtual void OnSignInResize(const gfx::Size& pref_size) = 0;
105 96
106 // Factory function to create the dialog (implemented once per view 97 // Factory function to create the dialog (implemented once per view
107 // implementation). |controller| will own the created dialog. 98 // implementation). |controller| will own the created dialog.
108 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate); 99 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate);
109 }; 100 };
110 101
111 } // namespace autofill 102 } // namespace autofill
112 103
113 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 104 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698