Chromium Code Reviews| Index: chrome/common/autofill_messages.h |
| diff --git a/chrome/common/autofill_messages.h b/chrome/common/autofill_messages.h |
| index c5a1ddd3e01f4de33d76cba945cbb5c29c57bb95..708e35079e2e063e7e82237648730d9ba430519f 100644 |
| --- a/chrome/common/autofill_messages.h |
| +++ b/chrome/common/autofill_messages.h |
| @@ -92,6 +92,11 @@ IPC_MESSAGE_ROUTED1( |
| IPC_MESSAGE_ROUTED1(AutofillMsg_SelectAutofillSuggestionAtIndex, |
| int /* listIndex */) |
| +// Inform the renderer that the browser has an external delegate |
| +// 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.
|
| +IPC_MESSAGE_ROUTED1(AutofillMsg_HasExternalDelegate, |
| + bool /* has_external_delegate */) |
|
Ilya Sherman
2011/11/07 21:48:49
nit: _SetHasExternalDelegate
csharp1
2011/11/08 19:59:00
Done.
|
| + |
| // Autofill messages sent from the renderer to the browser. |
| // Notification that forms have been seen that are candidates for |
| @@ -155,4 +160,23 @@ IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, |
| // Instructs the browser to show the Autofill dialog. |
| IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) |
| +// Messages to the Autofill delegate (which lives in the browser) from the |
| +// renderer. |
| + |
| +// Tell the external delegate which autofill suggestions to show. |
| +IPC_MESSAGE_ROUTED5(AutofillDelegateMsg_ShowAutofillSuggestions, |
| + int /* id of the request message */, |
| + std::vector<string16> /* names */, |
| + std::vector<string16> /* labels */, |
| + std::vector<string16> /* icons */, |
| + 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
|
| + |
| +// Tells the external delegate where the element it is working on appears. |
| +IPC_MESSAGE_ROUTED4(AutofillDelegateMsg_AutofillElementBounds, |
| + int /* x */, |
| + int /* y */, |
| + int /* width */, |
| + 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:
|
| +// Instructs the external delegate to hide the Autofill popup. |
| +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.
|