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

Unified Diff: android_webview/browser/aw_autofill_manager_delegate.h

Issue 16212007: Implement the autofill UI for chromium powered android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue15097004
Patch Set: move ui files Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_autofill_manager_delegate.h
diff --git a/android_webview/browser/aw_autofill_manager_delegate.h b/android_webview/browser/aw_autofill_manager_delegate.h
deleted file mode 100644
index 23b4d7d778ae40cc183d3039bfc98899dc97b3fd..0000000000000000000000000000000000000000
--- a/android_webview/browser/aw_autofill_manager_delegate.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
-#define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "components/autofill/browser/autofill_manager_delegate.h"
-#include "content/public/browser/web_contents_user_data.h"
-
-namespace autofill {
-class AutofillMetrics;
-class AutofillPopupDelegate;
-class CreditCard;
-class FormStructure;
-class PasswordGenerator;
-class PersonalDataManager;
-struct FormData;
-namespace autocheckout {
-class WhitelistManager;
-}
-}
-
-namespace content {
-class WebContents;
-}
-
-class PersonalDataManager;
-class PrefService;
-
-namespace android_webview {
-
-// Manager delegate for the autofill functionality. Android webview
-// supports enabling autocomplete feature for each webview instance
-// (different than the browser which supports enabling/disabling for
-// a profile). Since there is only one pref service for a given browser
-// context, we cannot enable this feature via UserPrefs. Rather, we always
-// keep the feature enabled at the pref service, and control it via
-// the delegates.
-class AwAutofillManagerDelegate
- : public autofill::AutofillManagerDelegate,
- public content::WebContentsUserData<AwAutofillManagerDelegate> {
-
- public:
- virtual ~AwAutofillManagerDelegate();
-
- void SetSaveFormData(bool enabled);
- bool GetSaveFormData();
-
- // AutofillManagerDelegate implementation.
- virtual autofill::PersonalDataManager* GetPersonalDataManager() OVERRIDE;
- virtual PrefService* GetPrefs() OVERRIDE;
- virtual autofill::autocheckout::WhitelistManager*
- GetAutocheckoutWhitelistManager() const OVERRIDE;
- virtual void HideRequestAutocompleteDialog() OVERRIDE;
- virtual void OnAutocheckoutError() OVERRIDE;
- virtual void ShowAutofillSettings() OVERRIDE;
- virtual void ConfirmSaveCreditCard(
- const autofill::AutofillMetrics& metric_logger,
- const autofill::CreditCard& credit_card,
- const base::Closure& save_card_callback) OVERRIDE;
- virtual void ShowAutocheckoutBubble(
- const gfx::RectF& bounds,
- bool is_google_user,
- const base::Callback<void(bool)>& callback) OVERRIDE;
- virtual void HideAutocheckoutBubble() OVERRIDE;
- virtual void ShowRequestAutocompleteDialog(
- const autofill::FormData& form,
- const GURL& source_url,
- autofill::DialogType dialog_type,
- const base::Callback<void(const autofill::FormStructure*,
- const std::string&)>& callback) OVERRIDE;
- virtual void ShowAutofillPopup(
- const gfx::RectF& element_bounds,
- const std::vector<string16>& values,
- const std::vector<string16>& labels,
- const std::vector<string16>& icons,
- const std::vector<int>& identifiers,
- base::WeakPtr<autofill::AutofillPopupDelegate> delegate) OVERRIDE;
- virtual void HideAutofillPopup() OVERRIDE;
- virtual void UpdateProgressBar(double value) OVERRIDE;
-
- private:
- AwAutofillManagerDelegate(content::WebContents* contents);
- friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
-
- bool save_form_data_;
-
- DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
-};
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698