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

Side by Side Diff: chrome/browser/autofill/autofill_dialog.h

Issue 2975003: Makes the auto fill dialogs match the mocks. (Closed)
Patch Set: Moves function declarations out of autofill_dialog.h Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUTOFILL_AUTOFILL_DIALOG_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/autofill/autofill_profile.h" 10 #include "chrome/browser/autofill/autofill_profile.h"
11 #include "chrome/browser/autofill/credit_card.h" 11 #include "chrome/browser/autofill/credit_card.h"
12 #include "gfx/native_widget_types.h" 12 #include "gfx/native_widget_types.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 // An interface the AutoFill dialog uses to notify its clients (observers) when 16 // An interface the AutoFill dialog uses to notify its clients (observers) when
17 // the user has applied changes to the AutoFill profile data. 17 // the user has applied changes to the AutoFill profile data.
18 class AutoFillDialogObserver { 18 class AutoFillDialogObserver {
19 public: 19 public:
20 // The user has confirmed changes by clicking "Apply" or "OK". Any of the 20 // The user has confirmed changes by clicking "Apply" or "OK". Any of the
21 // parameters may be NULL. 21 // parameters may be NULL. A NULL parameter is treated as not changing the
22 // existing data. For example, |OnAutoFillDialogApply(new_profiles, NULL)|
23 // only sets the profiles and not the credit cards.
22 virtual void OnAutoFillDialogApply( 24 virtual void OnAutoFillDialogApply(
23 std::vector<AutoFillProfile>* profiles, 25 std::vector<AutoFillProfile>* profiles,
24 std::vector<CreditCard>* credit_cards) = 0; 26 std::vector<CreditCard>* credit_cards) = 0;
25 27
26 protected: 28 protected:
27 virtual ~AutoFillDialogObserver() {} 29 virtual ~AutoFillDialogObserver() {}
28 }; 30 };
29 31
30 // Shows the AutoFill dialog, which allows the user to edit profile information. 32 // Shows the AutoFill dialog, which allows the user to edit profile information.
31 // |profile| is profile from which you can get vectors of of autofill profiles 33 // |profile| is profile from which you can get vectors of autofill profiles that
32 // that contains the current profile information and credit cards. 34 // contains the current profile information and credit cards. The dialog fills
33 // The dialog fills out the profile fields using this data. 35 // out the profile fields using this data.
34 // 36 //
35 // |observer| will be notified by OnAutoFillDialogAccept when the user has 37 // |observer| will be notified by OnAutoFillDialogAccept when the user has
36 // applied changes. May not be NULL. 38 // applied changes. May not be NULL.
37 // 39 //
38 // The |parent| parameter (currently only used on Windows) specifies the parent 40 // The |parent| parameter (currently only used on Windows) specifies the parent
39 // view in the view hierarchy. May be NULL on Mac and gtk. 41 // view in the view hierarchy. May be NULL on Mac and gtk.
40 void ShowAutoFillDialog(gfx::NativeView parent, 42 void ShowAutoFillDialog(gfx::NativeView parent,
41 AutoFillDialogObserver* observer, 43 AutoFillDialogObserver* observer,
42 Profile* profile); 44 Profile* profile);
43 45
44 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ 46 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/auto_fill_editor_gtk.cc ('k') | chrome/browser/autofill/autofill_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698