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

Side by Side Diff: chrome/browser/ui/autofill/chrome_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 CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void ShowUnmaskPrompt() override; 50 void ShowUnmaskPrompt() override;
51 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; 51 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override;
52 bool HasCreditCardScanFeature() override; 52 bool HasCreditCardScanFeature() override;
53 void ScanCreditCard(const CreditCardScanCallback& callback) override; 53 void ScanCreditCard(const CreditCardScanCallback& callback) override;
54 void ShowRequestAutocompleteDialog(const FormData& form, 54 void ShowRequestAutocompleteDialog(const FormData& form,
55 const GURL& source_url, 55 const GURL& source_url,
56 const ResultCallback& callback) override; 56 const ResultCallback& callback) override;
57 void ShowAutofillPopup( 57 void ShowAutofillPopup(
58 const gfx::RectF& element_bounds, 58 const gfx::RectF& element_bounds,
59 base::i18n::TextDirection text_direction, 59 base::i18n::TextDirection text_direction,
60 const std::vector<base::string16>& values, 60 const std::vector<autofill::Suggestion>& suggestions,
61 const std::vector<base::string16>& labels,
62 const std::vector<base::string16>& icons,
63 const std::vector<int>& identifiers,
64 base::WeakPtr<AutofillPopupDelegate> delegate) override; 61 base::WeakPtr<AutofillPopupDelegate> delegate) override;
65 void UpdateAutofillPopupDataListValues( 62 void UpdateAutofillPopupDataListValues(
66 const std::vector<base::string16>& values, 63 const std::vector<base::string16>& values,
67 const std::vector<base::string16>& labels) override; 64 const std::vector<base::string16>& labels) override;
68 void HideAutofillPopup() override; 65 void HideAutofillPopup() override;
69 bool IsAutocompleteEnabled() override; 66 bool IsAutocompleteEnabled() override;
70 void DetectAccountCreationForms( 67 void DetectAccountCreationForms(
71 content::RenderFrameHost* rfh, 68 content::RenderFrameHost* rfh,
72 const std::vector<autofill::FormStructure*>& forms) override; 69 const std::vector<autofill::FormStructure*>& forms) override;
73 void DidFillOrPreviewField(const base::string16& autofilled_value, 70 void DidFillOrPreviewField(const base::string16& autofilled_value,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 117 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
121 118
122 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; 119 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 121 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
125 }; 122 };
126 123
127 } // namespace autofill 124 } // namespace autofill
128 125
129 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 126 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698