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

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: . 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. If |clear_user_input|,
39 virtual void UpdateSection(DialogSection section) = 0; 39 // is true, the view should also clobber all manual inputs. Otherwise,
40 // previous user input should be respected.
41 virtual void UpdateSection(DialogSection section, bool clear_user_input) = 0;
Ilya Sherman 2013/04/04 03:59:55 nit: If you keep this method, please use an enumer
Ilya Sherman 2013/04/04 23:11:02 ^^^
Evan Stade 2013/04/05 23:24:01 Done.
40 42
41 // Fills |output| with data the user manually input. 43 // Fills |output| with data the user manually input.
42 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; 44 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0;
43 45
44 // Gets the CVC value the user typed to go along with the stored credit card 46 // 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 47 // data. If the user is inputing credit card data from scratch, this is not
46 // relevant. 48 // relevant.
47 virtual string16 GetCvc() = 0; 49 virtual string16 GetCvc() = 0;
48 50
49 // Returns the state of the "use billing address for shipping" checkbox. 51 // Returns the state of the "use billing address for shipping" checkbox.
(...skipping 26 matching lines...) Expand all
76 virtual void CancelForTesting() = 0; 78 virtual void CancelForTesting() = 0;
77 79
78 // Factory function to create the dialog (implemented once per view 80 // Factory function to create the dialog (implemented once per view
79 // implementation). |controller| will own the created dialog. 81 // implementation). |controller| will own the created dialog.
80 static AutofillDialogView* Create(AutofillDialogController* controller); 82 static AutofillDialogView* Create(AutofillDialogController* controller);
81 }; 83 };
82 84
83 } // namespace autofill 85 } // namespace autofill
84 86
85 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 87 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698