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

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

Issue 1208133002: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added |match_start| usage. Created 5 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 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 21 matching lines...) Expand all
32 // Creates an AutofillExternalDelegate for the specified AutofillManager and 32 // Creates an AutofillExternalDelegate for the specified AutofillManager and
33 // AutofillDriver. 33 // AutofillDriver.
34 AutofillExternalDelegate(AutofillManager* manager, 34 AutofillExternalDelegate(AutofillManager* manager,
35 AutofillDriver* driver); 35 AutofillDriver* driver);
36 virtual ~AutofillExternalDelegate(); 36 virtual ~AutofillExternalDelegate();
37 37
38 // AutofillPopupDelegate implementation. 38 // AutofillPopupDelegate implementation.
39 void OnPopupShown() override; 39 void OnPopupShown() override;
40 void OnPopupHidden() override; 40 void OnPopupHidden() override;
41 void DidSelectSuggestion(const base::string16& value, 41 void DidSelectSuggestion(const base::string16& value,
42 int identifier) override; 42 int identifier,
43 size_t match_start) override;
43 void DidAcceptSuggestion(const base::string16& value, 44 void DidAcceptSuggestion(const base::string16& value,
44 int identifier, 45 int identifier,
45 int position) override; 46 int position) override;
46 bool GetDeletionConfirmationText(const base::string16& value, 47 bool GetDeletionConfirmationText(const base::string16& value,
47 int identifier, 48 int identifier,
48 base::string16* title, 49 base::string16* title,
49 base::string16* body) override; 50 base::string16* body) override;
50 bool RemoveSuggestion(const base::string16& value, int identifier) override; 51 bool RemoveSuggestion(const base::string16& value, int identifier) override;
51 void ClearPreviewedForm() override; 52 void ClearPreviewedForm() override;
52 53
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 std::vector<base::string16> data_list_labels_; 154 std::vector<base::string16> data_list_labels_;
154 155
155 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; 156 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
158 }; 159 };
159 160
160 } // namespace autofill 161 } // namespace autofill
161 162
162 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 163 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_driver.h ('k') | components/autofill/core/browser/autofill_external_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698