OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
14 #include "components/autofill/content/browser/autocheckout_steps.h" | |
15 #include "components/autofill/core/browser/form_structure.h" | 14 #include "components/autofill/core/browser/form_structure.h" |
16 | 15 |
17 class GURL; | 16 class GURL; |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 class WebContents; | 19 class WebContents; |
21 } | 20 } |
22 | 21 |
23 namespace user_prefs { | 22 namespace user_prefs { |
24 class PrefRegistrySyncable; | 23 class PrefRegistrySyncable; |
(...skipping 21 matching lines...) Expand all Loading... | |
46 // Shows the Autofill dialog. | 45 // Shows the Autofill dialog. |
47 virtual void Show() = 0; | 46 virtual void Show() = 0; |
48 | 47 |
49 // Hides the Autofill dialog. | 48 // Hides the Autofill dialog. |
50 virtual void Hide() = 0; | 49 virtual void Hide() = 0; |
51 | 50 |
52 // Called when the tab hosting this dialog is activated by a user gesture. | 51 // Called when the tab hosting this dialog is activated by a user gesture. |
53 // Used to trigger a refresh of the user's Wallet data. | 52 // Used to trigger a refresh of the user's Wallet data. |
54 virtual void TabActivated() = 0; | 53 virtual void TabActivated() = 0; |
55 | 54 |
56 // Adds a step in the flow to the Autocheckout UI. | |
57 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) = 0; | |
58 | |
59 // Updates the status of a step in the Autocheckout UI. | |
60 virtual void UpdateAutocheckoutStep( | |
61 AutocheckoutStepType step_type, | |
62 AutocheckoutStepStatus step_status) = 0; | |
63 | |
64 // Called when there is an error in an active Autocheckout flow. | |
65 virtual void OnAutocheckoutError() = 0; | |
66 | |
67 // Called when an Autocheckout flow completes successfully. | |
68 virtual void OnAutocheckoutSuccess() = 0; | |
69 | |
70 // Returns the dialog type. | 55 // Returns the dialog type. |
71 virtual DialogType GetDialogType() const = 0; | 56 virtual DialogType GetDialogType() const = 0; |
Evan Stade
2013/08/26 18:23:26
can you remove this or flag it for removal?
Raman Kakilate
2013/08/27 21:52:59
Done.
| |
72 }; | 57 }; |
73 | 58 |
74 } // namespace autofill | 59 } // namespace autofill |
75 | 60 |
76 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 61 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |