OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/autofill/autofill_profile.h" | 11 #include "chrome/browser/autofill/autofill_profile.h" |
12 #include "chrome/browser/autofill/credit_card.h" | 12 #include "chrome/browser/autofill/credit_card.h" |
13 #include "gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 // An interface the AutoFill dialog uses to notify its clients (observers) when | 17 // An interface the AutoFill dialog uses to notify its clients (observers) when |
18 // the user has applied changes to the AutoFill profile data. | 18 // the user has applied changes to the AutoFill profile data. |
19 class AutoFillDialogObserver { | 19 class AutoFillDialogObserver { |
20 public: | 20 public: |
21 // The user has confirmed changes by clicking "Apply" or "OK". Any of the | 21 // The user has confirmed changes by clicking "Apply" or "OK". Any of the |
22 // parameters may be NULL. A NULL parameter is treated as not changing the | 22 // parameters may be NULL. A NULL parameter is treated as not changing the |
23 // existing data. For example, |OnAutoFillDialogApply(new_profiles, NULL)| | 23 // existing data. For example, |OnAutoFillDialogApply(new_profiles, NULL)| |
(...skipping 14 matching lines...) Expand all Loading... |
38 // |observer| will be notified by OnAutoFillDialogAccept when the user has | 38 // |observer| will be notified by OnAutoFillDialogAccept when the user has |
39 // applied changes. May not be NULL. | 39 // applied changes. May not be NULL. |
40 // | 40 // |
41 // The |parent| parameter (currently only used on Windows) specifies the parent | 41 // The |parent| parameter (currently only used on Windows) specifies the parent |
42 // view in the view hierarchy. May be NULL on Mac and gtk. | 42 // view in the view hierarchy. May be NULL on Mac and gtk. |
43 void ShowAutoFillDialog(gfx::NativeView parent, | 43 void ShowAutoFillDialog(gfx::NativeView parent, |
44 AutoFillDialogObserver* observer, | 44 AutoFillDialogObserver* observer, |
45 Profile* profile); | 45 Profile* profile); |
46 | 46 |
47 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ | 47 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ |
OLD | NEW |