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

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

Issue 10443084: Add Datalist Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 8 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
« no previous file with comments | « chrome/common/autofill_messages.h ('k') | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void OnFieldTypePredictionsAvailable( 105 void OnFieldTypePredictionsAvailable(
106 const std::vector<webkit::forms::FormDataPredictions>& forms); 106 const std::vector<webkit::forms::FormDataPredictions>& forms);
107 107
108 // For external Autofill selection. 108 // For external Autofill selection.
109 void OnSelectAutofillSuggestionAtIndex(int listIndex); 109 void OnSelectAutofillSuggestionAtIndex(int listIndex);
110 void OnSetAutofillActionFill(); 110 void OnSetAutofillActionFill();
111 void OnClearForm(); 111 void OnClearForm();
112 void OnSetAutofillActionPreview(); 112 void OnSetAutofillActionPreview();
113 void OnClearPreviewedForm(); 113 void OnClearPreviewedForm();
114 void OnSetNodeText(const string16& value); 114 void OnSetNodeText(const string16& value);
115 void OnAcceptDataListSuggestion(const string16& value);
115 void OnAcceptPasswordAutofillSuggestion(const string16& value); 116 void OnAcceptPasswordAutofillSuggestion(const string16& value);
116 117
117 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug 118 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug
118 // http://bugs.webkit.org/show_bug.cgi?id=16976 119 // http://bugs.webkit.org/show_bug.cgi?id=16976
119 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); 120 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element);
120 121
121 // Shows the autofill suggestions for |element|. 122 // Shows the autofill suggestions for |element|.
122 // This call is asynchronous and may or may not lead to the showing of a 123 // This call is asynchronous and may or may not lead to the showing of a
123 // suggestion popup (no popup is shown if there are no available suggestions). 124 // suggestion popup (no popup is shown if there are no available suggestions).
124 // |autofill_on_empty_values| specifies whether suggestions should be shown 125 // |autofill_on_empty_values| specifies whether suggestions should be shown
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 205 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
205 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 206 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
206 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 207 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
207 208
208 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 209 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
209 }; 210 };
210 211
211 } // namespace autofill 212 } // namespace autofill
212 213
213 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 214 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/common/autofill_messages.h ('k') | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698