| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HELPER_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| 6 #define CHROME_RENDERER_AUTOFILL_HELPER_H_ | 6 #define CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 const WebKit::WebString& value); | 37 const WebKit::WebString& value); |
| 38 | 38 |
| 39 // Removes the Autocomplete suggestion |value| for the field names |name|. | 39 // Removes the Autocomplete suggestion |value| for the field names |name|. |
| 40 void RemoveAutocompleteSuggestion(const WebKit::WebString& name, | 40 void RemoveAutocompleteSuggestion(const WebKit::WebString& name, |
| 41 const WebKit::WebString& value); | 41 const WebKit::WebString& value); |
| 42 | 42 |
| 43 // Called when we have received Autofill suggestions from the browser. | 43 // Called when we have received Autofill suggestions from the browser. |
| 44 void SuggestionsReceived(int query_id, | 44 void SuggestionsReceived(int query_id, |
| 45 const std::vector<string16>& values, | 45 const std::vector<string16>& values, |
| 46 const std::vector<string16>& labels, | 46 const std::vector<string16>& labels, |
| 47 const std::vector<string16>& icons, |
| 47 const std::vector<int>& unique_ids); | 48 const std::vector<int>& unique_ids); |
| 48 | 49 |
| 49 // Called when we have received suggestions for an entire form from the | 50 // Called when we have received suggestions for an entire form from the |
| 50 // browser. | 51 // browser. |
| 51 void FormDataFilled(int query_id, const webkit_glue::FormData& form); | 52 void FormDataFilled(int query_id, const webkit_glue::FormData& form); |
| 52 | 53 |
| 53 // Called by Webkit when the user has selected a suggestion in the popup (this | 54 // Called by Webkit when the user has selected a suggestion in the popup (this |
| 54 // happens when the user hovers over an suggestion or navigates the popup with | 55 // happens when the user hovers over an suggestion or navigates the popup with |
| 55 // the arrow keys). | 56 // the arrow keys). |
| 56 void DidSelectAutoFillSuggestion(const WebKit::WebNode& node, | 57 void DidSelectAutoFillSuggestion(const WebKit::WebNode& node, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // The menu index of the "Clear" menu item. | 117 // The menu index of the "Clear" menu item. |
| 117 int suggestions_clear_index_; | 118 int suggestions_clear_index_; |
| 118 | 119 |
| 119 // The menu index of the "AutoFill options..." menu item. | 120 // The menu index of the "AutoFill options..." menu item. |
| 120 int suggestions_options_index_; | 121 int suggestions_options_index_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(AutoFillHelper); | 123 DISALLOW_COPY_AND_ASSIGN(AutoFillHelper); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 #endif // CHROME_RENDERER_AUTOFILL_HELPER_H_ | 126 #endif // CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| OLD | NEW |