| OLD | NEW |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void OnFieldTypePredictionsAvailable( | 103 void OnFieldTypePredictionsAvailable( |
| 104 const std::vector<webkit::forms::FormDataPredictions>& forms); | 104 const std::vector<webkit::forms::FormDataPredictions>& forms); |
| 105 | 105 |
| 106 // For external Autofill selection. | 106 // For external Autofill selection. |
| 107 void OnSelectAutofillSuggestionAtIndex(int listIndex); | 107 void OnSelectAutofillSuggestionAtIndex(int listIndex); |
| 108 void OnSetAutofillActionFill(); | 108 void OnSetAutofillActionFill(); |
| 109 void OnClearForm(); | 109 void OnClearForm(); |
| 110 void OnSetAutofillActionPreview(); | 110 void OnSetAutofillActionPreview(); |
| 111 void OnClearPreviewedForm(); | 111 void OnClearPreviewedForm(); |
| 112 void OnSetNodeText(const string16& value); | 112 void OnSetNodeText(const string16& value); |
| 113 void OnAcceptPasswordAutofillSuggestion(const string16& value); |
| 113 | 114 |
| 114 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 115 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
| 115 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 116 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
| 116 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); | 117 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); |
| 117 | 118 |
| 118 // Shows the autofill suggestions for |element|. | 119 // Shows the autofill suggestions for |element|. |
| 119 // This call is asynchronous and may or may not lead to the showing of a | 120 // This call is asynchronous and may or may not lead to the showing of a |
| 120 // suggestion popup (no popup is shown if there are no available suggestions). | 121 // suggestion popup (no popup is shown if there are no available suggestions). |
| 121 // |autofill_on_empty_values| specifies whether suggestions should be shown | 122 // |autofill_on_empty_values| specifies whether suggestions should be shown |
| 122 // when |element| contains no text. | 123 // when |element| contains no text. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 193 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
| 193 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 194 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
| 194 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 195 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
| 195 | 196 |
| 196 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 197 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 } // namespace autofill | 200 } // namespace autofill |
| 200 | 201 |
| 201 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 202 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
| OLD | NEW |