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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // command-line flag is not set. | 63 // command-line flag is not set. |
64 virtual void SendAutofillTypePredictionsToRenderer( | 64 virtual void SendAutofillTypePredictionsToRenderer( |
65 const std::vector<FormStructure*>& forms) = 0; | 65 const std::vector<FormStructure*>& forms) = 0; |
66 | 66 |
67 // Tells the renderer to accept data list suggestions for |value|. | 67 // Tells the renderer to accept data list suggestions for |value|. |
68 virtual void RendererShouldAcceptDataListSuggestion( | 68 virtual void RendererShouldAcceptDataListSuggestion( |
69 const base::string16& value) = 0; | 69 const base::string16& value) = 0; |
70 | 70 |
71 // Tells the renderer to accept the password autofill suggestion for | 71 // Tells the renderer to accept the password autofill suggestion for |
72 // |username|. | 72 // |username|. |
73 virtual void RendererShouldAcceptPasswordAutofillSuggestion( | 73 virtual void RendererShouldFillPassword(const base::string16& username) = 0; |
| 74 |
| 75 // Tells the renderer to preview the password autofill suggestion for |
| 76 // |username|. |
| 77 virtual void RendererShouldPreviewPassword( |
74 const base::string16& username) = 0; | 78 const base::string16& username) = 0; |
75 | 79 |
76 // Tells the renderer to clear the currently filled Autofill results. | 80 // Tells the renderer to clear the currently filled Autofill results. |
77 virtual void RendererShouldClearFilledForm() = 0; | 81 virtual void RendererShouldClearFilledForm() = 0; |
78 | 82 |
79 // Tells the renderer to clear the currently previewed Autofill results. | 83 // Tells the renderer to clear the currently previewed Autofill results. |
80 virtual void RendererShouldClearPreviewedForm() = 0; | 84 virtual void RendererShouldClearPreviewedForm() = 0; |
81 | 85 |
82 // Tells the renderer to set the node text. | 86 // Tells the renderer to set the node text. |
83 virtual void RendererShouldFillFieldWithValue( | 87 virtual void RendererShouldFillFieldWithValue( |
84 const base::string16& value) = 0; | 88 const base::string16& value) = 0; |
85 | 89 |
86 // Tells the renderer to preview the node with suggested text. | 90 // Tells the renderer to preview the node with suggested text. |
87 virtual void RendererShouldPreviewFieldWithValue( | 91 virtual void RendererShouldPreviewFieldWithValue( |
88 const base::string16& value) = 0; | 92 const base::string16& value) = 0; |
89 | 93 |
90 }; | 94 }; |
91 | 95 |
92 } // namespace autofill | 96 } // namespace autofill |
93 | 97 |
94 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 98 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
OLD | NEW |