OLD | NEW |
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_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual ~AutofillDialogControllerImpl(); | 78 virtual ~AutofillDialogControllerImpl(); |
79 | 79 |
80 static base::WeakPtr<AutofillDialogControllerImpl> Create( | 80 static base::WeakPtr<AutofillDialogControllerImpl> Create( |
81 content::WebContents* contents, | 81 content::WebContents* contents, |
82 const FormData& form_structure, | 82 const FormData& form_structure, |
83 const GURL& source_url, | 83 const GURL& source_url, |
84 const DialogType dialog_type, | 84 const DialogType dialog_type, |
85 const base::Callback<void(const FormStructure*, | 85 const base::Callback<void(const FormStructure*, |
86 const std::string&)>& callback); | 86 const std::string&)>& callback); |
87 | 87 |
88 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 88 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
89 | 89 |
90 void Show(); | 90 void Show(); |
91 void Hide(); | 91 void Hide(); |
92 | 92 |
93 // Whether Autocheckout is currently running. | 93 // Whether Autocheckout is currently running. |
94 bool AutocheckoutIsRunning() const; | 94 bool AutocheckoutIsRunning() const; |
95 | 95 |
96 // Adds a step in the flow to the Autocheckout UI. | 96 // Adds a step in the flow to the Autocheckout UI. |
97 void AddAutocheckoutStep(AutocheckoutStepType step_type); | 97 void AddAutocheckoutStep(AutocheckoutStepType step_type); |
98 | 98 |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 // State of steps in the current Autocheckout flow, or empty if not an | 708 // State of steps in the current Autocheckout flow, or empty if not an |
709 // Autocheckout use case. | 709 // Autocheckout use case. |
710 std::vector<DialogAutocheckoutStep> steps_; | 710 std::vector<DialogAutocheckoutStep> steps_; |
711 | 711 |
712 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 712 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
713 }; | 713 }; |
714 | 714 |
715 } // namespace autofill | 715 } // namespace autofill |
716 | 716 |
717 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 717 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |