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

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

Issue 13607006: rAc: don't clobber user input when accepting autofill popup suggestion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 8 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 17 matching lines...) Expand all
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 31 // Called when account details may have changed (user logs in to GAIA, creates
32 // a new account, etc.). 32 // a new account, etc.).
33 virtual void UpdateAccountChooser() = 0; 33 virtual void UpdateAccountChooser() = 0;
34 34
35 // Updates the button strip based on the current controller state. 35 // Updates the button strip based on the current controller state.
36 virtual void UpdateButtonStrip() = 0; 36 virtual void UpdateButtonStrip() = 0;
37 37
38 // Called when the contents of a section have changed. 38 // Called when the contents of a section have changed. Depending on |action|,
39 virtual void UpdateSection(DialogSection section) = 0; 39 // the view may also clobber all manual inputs.
40 virtual void UpdateSection(DialogSection section, UserInputAction action) = 0;
40 41
41 // Fills |output| with data the user manually input. 42 // Fills |output| with data the user manually input.
42 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; 43 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0;
43 44
44 // Gets the CVC value the user typed to go along with the stored credit card 45 // Gets the CVC value the user typed to go along with the stored credit card
45 // data. If the user is inputing credit card data from scratch, this is not 46 // data. If the user is inputing credit card data from scratch, this is not
46 // relevant. 47 // relevant.
47 virtual string16 GetCvc() = 0; 48 virtual string16 GetCvc() = 0;
48 49
49 // Returns the state of the "use billing address for shipping" checkbox. 50 // Returns the state of the "use billing address for shipping" checkbox.
(...skipping 26 matching lines...) Expand all
76 virtual void CancelForTesting() = 0; 77 virtual void CancelForTesting() = 0;
77 78
78 // Factory function to create the dialog (implemented once per view 79 // Factory function to create the dialog (implemented once per view
79 // implementation). |controller| will own the created dialog. 80 // implementation). |controller| will own the created dialog.
80 static AutofillDialogView* Create(AutofillDialogController* controller); 81 static AutofillDialogView* Create(AutofillDialogController* controller);
81 }; 82 };
82 83
83 } // namespace autofill 84 } // namespace autofill
84 85
85 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 86 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_types.h ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698