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

Side by Side Diff: android_webview/native/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, 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/autofill/browser/autofill_manager_delegate.h" 10 #include "components/autofill/browser/autofill_manager_delegate.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void ShowAutofillPopup( 75 virtual void ShowAutofillPopup(
76 const gfx::RectF& element_bounds, 76 const gfx::RectF& element_bounds,
77 const std::vector<string16>& values, 77 const std::vector<string16>& values,
78 const std::vector<string16>& labels, 78 const std::vector<string16>& labels,
79 const std::vector<string16>& icons, 79 const std::vector<string16>& icons,
80 const std::vector<int>& identifiers, 80 const std::vector<int>& identifiers,
81 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) OVERRIDE; 81 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) OVERRIDE;
82 virtual void HideAutofillPopup() OVERRIDE; 82 virtual void HideAutofillPopup() OVERRIDE;
83 virtual void UpdateProgressBar(double value) OVERRIDE; 83 virtual void UpdateProgressBar(double value) OVERRIDE;
84 84
85 void SuggestionSelected(int position);
85 private: 86 private:
86 AwAutofillManagerDelegate(content::WebContents* contents); 87 AwAutofillManagerDelegate(content::WebContents* web_contents);
87 friend class content::WebContentsUserData<AwAutofillManagerDelegate>; 88 friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
88 89
89 bool save_form_data_; 90 bool save_form_data_;
91 content::WebContents* web_contents_;
92
93 // The current Autofill query values.
94 std::vector<string16> values_;
95 std::vector<int> identifiers_;
96 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
90 97
91 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate); 98 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
92 }; 99 };
93 100
94 } // namespace android_webview 101 } // namespace android_webview
95 102
96 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ 103 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698