Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_tab_manager_delegate.h |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_tab_manager_delegate.h b/chrome/browser/ui/autofill/autofill_dialog_tab_manager_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..279cbe06951c8368495487c8437e820771a24ec9 |
| --- /dev/null |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_tab_manager_delegate.h |
| @@ -0,0 +1,70 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_TAB_MANAGER_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_TAB_MANAGER_DELEGATE_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "base/strings/string16.h" |
| +#include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| +#include "components/autofill/content/browser/autocheckout_steps.h" |
| +#include "components/autofill/core/browser/form_structure.h" |
| + |
| +class GURL; |
| + |
| +namespace content { |
| +class WebContents; |
| +} |
| + |
| +namespace user_prefs { |
| +class PrefRegistrySyncable; |
| +} |
| + |
| +namespace autofill { |
| + |
| +// TODO(aruslan): name and description; should be moved into a separate .h. |
|
aruslan
2013/07/31 02:43:19
Description.
aruslan
2013/08/07 23:17:03
Done.
|
| +class AutofillDialogTabManagerDelegate { |
|
Evan Stade
2013/08/01 19:44:52
this name is super confusing. Should be AutofillDi
aruslan
2013/08/07 23:17:03
Done.
|
| + public: |
| + virtual ~AutofillDialogTabManagerDelegate(); |
| + |
| + static base::WeakPtr<AutofillDialogTabManagerDelegate> Create( |
|
aruslan
2013/07/31 02:43:19
Description
aruslan
2013/08/07 23:17:03
Done.
|
| + content::WebContents* contents, |
| + const FormData& form_structure, |
| + const GURL& source_url, |
| + const DialogType dialog_type, |
| + const base::Callback<void(const FormStructure*, |
| + const std::string&)>& callback); |
| + |
| + static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
|
aruslan
2013/07/31 02:43:19
Description.
aruslan
2013/08/07 23:17:03
Done.
|
| + |
| + virtual void Show() = 0; |
|
aruslan
2013/07/31 02:43:19
Descriptions.
aruslan
2013/08/07 23:17:03
Done.
|
| + virtual void Hide() = 0; |
| + |
| + // Called when the tab hosting this dialog is activated by a user gesture. |
| + // Used to trigger a refresh of the user's Wallet data. |
| + virtual void TabActivated() = 0; |
| + |
| + // Adds a step in the flow to the Autocheckout UI. |
| + virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) = 0; |
| + |
| + // Updates the status of a step in the Autocheckout UI. |
| + virtual void UpdateAutocheckoutStep( |
| + AutocheckoutStepType step_type, |
| + AutocheckoutStepStatus step_status) = 0; |
| + |
| + // Called when there is an error in an active Autocheckout flow. |
| + virtual void OnAutocheckoutError() = 0; |
| + |
| + // Called when an Autocheckout flow completes successfully. |
| + virtual void OnAutocheckoutSuccess() = 0; |
| + |
| + virtual DialogType GetDialogType() const = 0; |
|
aruslan
2013/07/31 02:43:19
Description.
aruslan
2013/08/07 23:17:03
Done.
|
| +}; |
| + |
| +} // namespace autofill |
| + |
| +#endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_TAB_MANAGER_DELEGATE_H_ |