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

Side by Side Diff: chrome/renderer/autofill/autofill_agent.h

Issue 8353025: External autofill delegates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase against TOT Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void OnSuggestionsReturned(int query_id, 94 void OnSuggestionsReturned(int query_id,
95 const std::vector<string16>& values, 95 const std::vector<string16>& values,
96 const std::vector<string16>& labels, 96 const std::vector<string16>& labels,
97 const std::vector<string16>& icons, 97 const std::vector<string16>& icons,
98 const std::vector<int>& unique_ids); 98 const std::vector<int>& unique_ids);
99 void OnFormDataFilled(int query_id, const webkit_glue::FormData& form); 99 void OnFormDataFilled(int query_id, const webkit_glue::FormData& form);
100 void OnFieldTypePredictionsAvailable( 100 void OnFieldTypePredictionsAvailable(
101 const std::vector<webkit_glue::FormDataPredictions>& forms); 101 const std::vector<webkit_glue::FormDataPredictions>& forms);
102 102
103 // For external Autofill selection.
104 void OnSelectAutofillSuggestionAtIndex(int listIndex);
105
103 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug 106 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug
104 // http://bugs.webkit.org/show_bug.cgi?id=16976 107 // http://bugs.webkit.org/show_bug.cgi?id=16976
105 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); 108 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element);
106 109
107 // Shows the autofill suggestions for |element|. 110 // Shows the autofill suggestions for |element|.
108 // This call is asynchronous and may or may not lead to the showing of a 111 // This call is asynchronous and may or may not lead to the showing of a
109 // suggestion popup (no popup is shown if there are no available suggestions). 112 // suggestion popup (no popup is shown if there are no available suggestions).
110 // |autofill_on_empty_values| specifies whether suggestions should be shown 113 // |autofill_on_empty_values| specifies whether suggestions should be shown
111 // when |element| contains no text. 114 // when |element| contains no text.
112 // |requires_caret_at_end| specifies whether suggestions should be shown when 115 // |requires_caret_at_end| specifies whether suggestions should be shown when
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 181 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
179 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 182 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
180 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 183 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
181 184
182 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 185 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
183 }; 186 };
184 187
185 } // namespace autofill 188 } // namespace autofill
186 189
187 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 190 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698