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

Side by Side Diff: android_webview/native/aw_autofill_manager_delegate.h

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/android/jni_helper.h" 11 #include "base/android/jni_helper.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/prefs/pref_registry_simple.h" 14 #include "base/prefs/pref_registry_simple.h"
15 #include "base/prefs/pref_service_builder.h" 15 #include "base/prefs/pref_service_builder.h"
16 #include "components/autofill/core/browser/autocheckout_bubble_state.h"
17 #include "components/autofill/core/browser/autofill_manager_delegate.h" 16 #include "components/autofill/core/browser/autofill_manager_delegate.h"
18 #include "content/public/browser/web_contents_user_data.h" 17 #include "content/public/browser/web_contents_user_data.h"
19 18
20 namespace autofill { 19 namespace autofill {
21 class AutofillMetrics; 20 class AutofillMetrics;
22 class AutofillPopupDelegate; 21 class AutofillPopupDelegate;
23 class CreditCard; 22 class CreditCard;
24 class FormStructure; 23 class FormStructure;
25 class PasswordGenerator; 24 class PasswordGenerator;
26 class PersonalDataManager; 25 class PersonalDataManager;
27 struct FormData; 26 struct FormData;
28 namespace autocheckout {
29 class WhitelistManager;
30 }
31 } 27 }
32 28
33 namespace content { 29 namespace content {
34 class WebContents; 30 class WebContents;
35 } 31 }
36 32
37 namespace gfx { 33 namespace gfx {
38 class RectF; 34 class RectF;
39 } 35 }
40 36
(...skipping 15 matching lines...) Expand all
56 52
57 public: 53 public:
58 virtual ~AwAutofillManagerDelegate(); 54 virtual ~AwAutofillManagerDelegate();
59 55
60 void SetSaveFormData(bool enabled); 56 void SetSaveFormData(bool enabled);
61 bool GetSaveFormData(); 57 bool GetSaveFormData();
62 58
63 // AutofillManagerDelegate implementation. 59 // AutofillManagerDelegate implementation.
64 virtual autofill::PersonalDataManager* GetPersonalDataManager() OVERRIDE; 60 virtual autofill::PersonalDataManager* GetPersonalDataManager() OVERRIDE;
65 virtual PrefService* GetPrefs() OVERRIDE; 61 virtual PrefService* GetPrefs() OVERRIDE;
66 virtual autofill::autocheckout::WhitelistManager*
67 GetAutocheckoutWhitelistManager() const OVERRIDE;
68 virtual void HideRequestAutocompleteDialog() OVERRIDE; 62 virtual void HideRequestAutocompleteDialog() OVERRIDE;
69 virtual void OnAutocheckoutError() OVERRIDE;
70 virtual void OnAutocheckoutSuccess() OVERRIDE;
71 virtual void ShowAutofillSettings() OVERRIDE; 63 virtual void ShowAutofillSettings() OVERRIDE;
72 virtual void ConfirmSaveCreditCard( 64 virtual void ConfirmSaveCreditCard(
73 const autofill::AutofillMetrics& metric_logger, 65 const autofill::AutofillMetrics& metric_logger,
74 const autofill::CreditCard& credit_card, 66 const autofill::CreditCard& credit_card,
75 const base::Closure& save_card_callback) OVERRIDE; 67 const base::Closure& save_card_callback) OVERRIDE;
76 virtual bool ShowAutocheckoutBubble(
77 const gfx::RectF& bounds,
78 bool is_google_user,
79 const base::Callback<void(
80 autofill::AutocheckoutBubbleState)>& callback) OVERRIDE;
81 virtual void HideAutocheckoutBubble() OVERRIDE;
82 virtual void ShowRequestAutocompleteDialog( 68 virtual void ShowRequestAutocompleteDialog(
83 const autofill::FormData& form, 69 const autofill::FormData& form,
84 const GURL& source_url, 70 const GURL& source_url,
85 autofill::DialogType dialog_type, 71 autofill::DialogType dialog_type,
86 const base::Callback<void(const autofill::FormStructure*, 72 const base::Callback<void(const autofill::FormStructure*,
87 const std::string&)>& callback) OVERRIDE; 73 const std::string&)>& callback) OVERRIDE;
88 virtual void ShowAutofillPopup( 74 virtual void ShowAutofillPopup(
89 const gfx::RectF& element_bounds, 75 const gfx::RectF& element_bounds,
90 base::i18n::TextDirection text_direction, 76 base::i18n::TextDirection text_direction,
91 const std::vector<string16>& values, 77 const std::vector<string16>& values,
92 const std::vector<string16>& labels, 78 const std::vector<string16>& labels,
93 const std::vector<string16>& icons, 79 const std::vector<string16>& icons,
94 const std::vector<int>& identifiers, 80 const std::vector<int>& identifiers,
95 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) OVERRIDE; 81 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) OVERRIDE;
96 virtual void UpdateAutofillPopupDataListValues( 82 virtual void UpdateAutofillPopupDataListValues(
97 const std::vector<base::string16>& values, 83 const std::vector<base::string16>& values,
98 const std::vector<base::string16>& labels) OVERRIDE; 84 const std::vector<base::string16>& labels) OVERRIDE;
99 virtual void HideAutofillPopup() OVERRIDE; 85 virtual void HideAutofillPopup() OVERRIDE;
100 virtual bool IsAutocompleteEnabled() OVERRIDE; 86 virtual bool IsAutocompleteEnabled() OVERRIDE;
101 virtual void AddAutocheckoutStep(autofill::AutocheckoutStepType step_type)
102 OVERRIDE;
103 virtual void UpdateAutocheckoutStep(
104 autofill::AutocheckoutStepType step_type,
105 autofill::AutocheckoutStepStatus step_status) OVERRIDE;
106 87
107 void SuggestionSelected(JNIEnv* env, 88 void SuggestionSelected(JNIEnv* env,
108 jobject obj, 89 jobject obj,
109 jint position); 90 jint position);
110 private: 91 private:
111 AwAutofillManagerDelegate(content::WebContents* web_contents); 92 AwAutofillManagerDelegate(content::WebContents* web_contents);
112 friend class content::WebContentsUserData<AwAutofillManagerDelegate>; 93 friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
113 94
114 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, 95 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds,
115 const std::vector<string16>& values, 96 const std::vector<string16>& values,
(...skipping 11 matching lines...) Expand all
127 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 108 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
128 109
129 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate); 110 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
130 }; 111 };
131 112
132 bool RegisterAwAutofillManagerDelegate(JNIEnv* env); 113 bool RegisterAwAutofillManagerDelegate(JNIEnv* env);
133 114
134 } // namespace android_webview 115 } // namespace android_webview
135 116
136 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ 117 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698