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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.h

Issue 772253003: Create an autofill Suggestion class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 void ShowUnmaskPrompt() override; 28 void ShowUnmaskPrompt() override;
29 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; 29 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override;
30 bool HasCreditCardScanFeature() override; 30 bool HasCreditCardScanFeature() override;
31 void ScanCreditCard(const CreditCardScanCallback& callback) override; 31 void ScanCreditCard(const CreditCardScanCallback& callback) override;
32 void ShowRequestAutocompleteDialog(const FormData& form, 32 void ShowRequestAutocompleteDialog(const FormData& form,
33 const GURL& source_url, 33 const GURL& source_url,
34 const ResultCallback& callback) override; 34 const ResultCallback& callback) override;
35 void ShowAutofillPopup( 35 void ShowAutofillPopup(
36 const gfx::RectF& element_bounds, 36 const gfx::RectF& element_bounds,
37 base::i18n::TextDirection text_direction, 37 base::i18n::TextDirection text_direction,
38 const std::vector<base::string16>& values, 38 const std::vector<Suggestion>& suggestions,
39 const std::vector<base::string16>& labels,
40 const std::vector<base::string16>& icons,
41 const std::vector<int>& identifiers,
42 base::WeakPtr<AutofillPopupDelegate> delegate) override; 39 base::WeakPtr<AutofillPopupDelegate> delegate) override;
43 void UpdateAutofillPopupDataListValues( 40 void UpdateAutofillPopupDataListValues(
44 const std::vector<base::string16>& values, 41 const std::vector<base::string16>& values,
45 const std::vector<base::string16>& labels) override; 42 const std::vector<base::string16>& labels) override;
46 void HideAutofillPopup() override; 43 void HideAutofillPopup() override;
47 bool IsAutocompleteEnabled() override; 44 bool IsAutocompleteEnabled() override;
48 void DetectAccountCreationForms( 45 void DetectAccountCreationForms(
49 content::RenderFrameHost* rfh, 46 content::RenderFrameHost* rfh,
50 const std::vector<autofill::FormStructure*>& forms) override; 47 const std::vector<autofill::FormStructure*>& forms) override;
51 void DidFillOrPreviewField(const base::string16& autofilled_value, 48 void DidFillOrPreviewField(const base::string16& autofilled_value,
52 const base::string16& profile_full_name) override; 49 const base::string16& profile_full_name) override;
53 void OnFirstUserGestureObserved() override; 50 void OnFirstUserGestureObserved() override;
54 51
55 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } 52 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); }
56 53
57 private: 54 private:
58 // NULL by default. 55 // NULL by default.
59 scoped_ptr<PrefService> prefs_; 56 scoped_ptr<PrefService> prefs_;
60 57
61 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); 58 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
62 }; 59 };
63 60
64 } // namespace autofill 61 } // namespace autofill
65 62
66 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 63 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/suggestion_test_helpers.h ('k') | components/autofill/core/browser/test_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698