Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "content/public/common/webkit_param_traits.h" | 10 #include "content/public/common/webkit_param_traits.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 | 85 |
| 86 // Send the heuristic and server field type predictions to the renderer. | 86 // Send the heuristic and server field type predictions to the renderer. |
| 87 IPC_MESSAGE_ROUTED1( | 87 IPC_MESSAGE_ROUTED1( |
| 88 AutofillMsg_FieldTypePredictionsAvailable, | 88 AutofillMsg_FieldTypePredictionsAvailable, |
| 89 std::vector<webkit_glue::FormDataPredictions> /* forms */) | 89 std::vector<webkit_glue::FormDataPredictions> /* forms */) |
| 90 | 90 |
| 91 // Select an Autofill item when using an external delegate. | 91 // Select an Autofill item when using an external delegate. |
| 92 IPC_MESSAGE_ROUTED1(AutofillMsg_SelectAutofillSuggestionAtIndex, | 92 IPC_MESSAGE_ROUTED1(AutofillMsg_SelectAutofillSuggestionAtIndex, |
| 93 int /* listIndex */) | 93 int /* listIndex */) |
| 94 | 94 |
| 95 // Inform the renderer that the browser has an external delegate | |
| 96 // that will display the auotfill popup. | |
|
Ilya Sherman
2011/11/07 21:48:49
nit: auotfill -> Autofill
csharp1
2011/11/08 19:59:00
Done.
| |
| 97 IPC_MESSAGE_ROUTED1(AutofillMsg_HasExternalDelegate, | |
| 98 bool /* has_external_delegate */) | |
|
Ilya Sherman
2011/11/07 21:48:49
nit: _SetHasExternalDelegate
csharp1
2011/11/08 19:59:00
Done.
| |
| 99 | |
| 95 // Autofill messages sent from the renderer to the browser. | 100 // Autofill messages sent from the renderer to the browser. |
| 96 | 101 |
| 97 // Notification that forms have been seen that are candidates for | 102 // Notification that forms have been seen that are candidates for |
| 98 // filling/submitting by the AutofillManager. | 103 // filling/submitting by the AutofillManager. |
| 99 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, | 104 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen, |
| 100 std::vector<webkit_glue::FormData> /* forms */, | 105 std::vector<webkit_glue::FormData> /* forms */, |
| 101 base::TimeTicks /* timestamp */) | 106 base::TimeTicks /* timestamp */) |
| 102 | 107 |
| 103 // Notification that password forms have been seen that are candidates for | 108 // Notification that password forms have been seen that are candidates for |
| 104 // filling/submitting by the password manager. | 109 // filling/submitting by the password manager. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 | 153 |
| 149 // Instructs the browser to remove the specified Autocomplete entry from the | 154 // Instructs the browser to remove the specified Autocomplete entry from the |
| 150 // database. | 155 // database. |
| 151 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, | 156 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, |
| 152 string16 /* field name */, | 157 string16 /* field name */, |
| 153 string16 /* value */) | 158 string16 /* value */) |
| 154 | 159 |
| 155 // Instructs the browser to show the Autofill dialog. | 160 // Instructs the browser to show the Autofill dialog. |
| 156 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) | 161 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) |
| 157 | 162 |
| 163 // Messages to the Autofill delegate (which lives in the browser) from the | |
| 164 // renderer. | |
| 158 | 165 |
| 166 // Tell the external delegate which autofill suggestions to show. | |
| 167 IPC_MESSAGE_ROUTED5(AutofillDelegateMsg_ShowAutofillSuggestions, | |
| 168 int /* id of the request message */, | |
| 169 std::vector<string16> /* names */, | |
| 170 std::vector<string16> /* labels */, | |
| 171 std::vector<string16> /* icons */, | |
| 172 std::vector<int> /* unique_ids */) | |
|
Ilya Sherman
2011/11/07 21:48:49
This should probably be a method call within the b
csharp1
2011/11/08 19:59:00
Ok, with some of autofill_agents logic repeated in
| |
| 173 | |
| 174 // Tells the external delegate where the element it is working on appears. | |
| 175 IPC_MESSAGE_ROUTED4(AutofillDelegateMsg_AutofillElementBounds, | |
| 176 int /* x */, | |
| 177 int /* y */, | |
| 178 int /* width */, | |
| 179 int /* height */) | |
|
Ilya Sherman
2011/11/07 21:48:49
Can these coordinates simply be passed as an addit
csharp1
2011/11/08 19:59:00
QueryFormFieldAutofill looks like it would be a pr
Ilya Sherman
2011/11/08 21:06:16
You can pass a gfx::Rect by adding serialization/d
csharp
2011/11/09 16:18:37
As I started looking there I saw a case where gfx:
| |
| 180 | |
| 181 // Instructs the external delegate to hide the Autofill popup. | |
| 182 IPC_MESSAGE_ROUTED0(AutofillDelegateMsg_HideAutofillPopup) | |
|
Ilya Sherman
2011/11/07 21:48:49
nit: This should be named AutofillHostMsg_*. The g
csharp1
2011/11/08 19:59:00
Done.
| |
| OLD | NEW |