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

Side by Side Diff: components/autofill/ios/browser/autofill_driver_ios.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, 5 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_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/autofill/core/browser/autofill_client.h" 10 #include "components/autofill/core/browser/autofill_client.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const std::vector<FormStructure*>& forms) override; 49 const std::vector<FormStructure*>& forms) override;
50 void RendererShouldClearFilledForm() override; 50 void RendererShouldClearFilledForm() override;
51 void RendererShouldClearPreviewedForm() override; 51 void RendererShouldClearPreviewedForm() override;
52 void RendererShouldAcceptDataListSuggestion( 52 void RendererShouldAcceptDataListSuggestion(
53 const base::string16& value) override; 53 const base::string16& value) override;
54 base::SequencedWorkerPool* GetBlockingPool() override; 54 base::SequencedWorkerPool* GetBlockingPool() override;
55 55
56 AutofillManager* autofill_manager() { return &autofill_manager_; } 56 AutofillManager* autofill_manager() { return &autofill_manager_; }
57 57
58 void RendererShouldFillFieldWithValue(const base::string16& value) override; 58 void RendererShouldFillFieldWithValue(const base::string16& value) override;
59 void RendererShouldPreviewFieldWithValue( 59 void RendererShouldPreviewFieldWithValue(const base::string16& value,
60 const base::string16& value) override; 60 size_t match_start) override;
61 void PopupHidden() override; 61 void PopupHidden() override;
62 62
63 private: 63 private:
64 AutofillDriverIOS( 64 AutofillDriverIOS(
65 web::WebState* web_state, 65 web::WebState* web_state,
66 AutofillClient* client, 66 AutofillClient* client,
67 id<AutofillDriverIOSBridge> bridge, 67 id<AutofillDriverIOSBridge> bridge,
68 const std::string& app_locale, 68 const std::string& app_locale,
69 AutofillManager::AutofillDownloadManagerState enable_download_manager); 69 AutofillManager::AutofillDownloadManagerState enable_download_manager);
70 ~AutofillDriverIOS() override; 70 ~AutofillDriverIOS() override;
71 71
72 // The WebState with which this object is associated. 72 // The WebState with which this object is associated.
73 web::WebState* web_state_; 73 web::WebState* web_state_;
74 74
75 // AutofillDriverIOSBridge instance that is passed in. 75 // AutofillDriverIOSBridge instance that is passed in.
76 id<AutofillDriverIOSBridge> bridge_; 76 id<AutofillDriverIOSBridge> bridge_;
77 77
78 // AutofillManager instance via which this object drives the shared Autofill 78 // AutofillManager instance via which this object drives the shared Autofill
79 // code. 79 // code.
80 AutofillManager autofill_manager_; 80 AutofillManager autofill_manager_;
81 // AutofillExternalDelegate instance that is passed to the AutofillManager. 81 // AutofillExternalDelegate instance that is passed to the AutofillManager.
82 AutofillExternalDelegate autofill_external_delegate_; 82 AutofillExternalDelegate autofill_external_delegate_;
83 }; 83 };
84 84
85 } // namespace autofill 85 } // namespace autofill
86 86
87 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ 87 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698