Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/autofill/core/common/form_data.h" | 10 #include "components/autofill/core/common/form_data.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 // Sends the field type predictions specified in |forms| to the renderer. This | 71 // Sends the field type predictions specified in |forms| to the renderer. This |
| 72 // method is a no-op if the renderer is not available or the appropriate | 72 // method is a no-op if the renderer is not available or the appropriate |
| 73 // command-line flag is not set. | 73 // command-line flag is not set. |
| 74 virtual void SendAutofillTypePredictionsToRenderer( | 74 virtual void SendAutofillTypePredictionsToRenderer( |
| 75 const std::vector<FormStructure*>& forms) = 0; | 75 const std::vector<FormStructure*>& forms) = 0; |
| 76 | 76 |
| 77 // Tells the renderer to accept data list suggestions for |value|. | 77 // Tells the renderer to accept data list suggestions for |value|. |
| 78 virtual void RendererShouldAcceptDataListSuggestion( | 78 virtual void RendererShouldAcceptDataListSuggestion( |
| 79 const base::string16& value) = 0; | 79 const base::string16& value) = 0; |
| 80 | 80 |
| 81 // Tells the renderer to accept password autofill suggestion for |value|. | |
|
blundell
2013/11/20 20:32:43
the password autofill suggestion
Ilya Sherman
2013/11/21 10:31:56
nit: Might be helpful to rename |value| to somethi
jif-google
2013/11/21 16:46:02
Done.
jif-google
2013/11/21 16:46:02
Renamed |value| to |username| in several methods (
| |
| 82 virtual void RendererShouldAcceptPasswordAutofillSuggestion( | |
| 83 const base::string16& value) = 0; | |
| 84 | |
| 81 // Tells the renderer to clear the currently filled Autofill results. | 85 // Tells the renderer to clear the currently filled Autofill results. |
| 82 virtual void RendererShouldClearFilledForm() = 0; | 86 virtual void RendererShouldClearFilledForm() = 0; |
| 83 | 87 |
| 84 // Tells the renderer to clear the currently previewed Autofill results. | 88 // Tells the renderer to clear the currently previewed Autofill results. |
| 85 virtual void RendererShouldClearPreviewedForm() = 0; | 89 virtual void RendererShouldClearPreviewedForm() = 0; |
| 86 | 90 |
| 87 // Tells the renderer to set the node text. | 91 // Tells the renderer to set the node text. |
| 88 virtual void RendererShouldSetNodeText(const base::string16& value) = 0; | 92 virtual void RendererShouldSetNodeText(const base::string16& value) = 0; |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace autofill | 95 } // namespace autofill |
| 92 | 96 |
| 93 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 97 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| OLD | NEW |