Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 | 27 |
| 28 #define IPC_MESSAGE_START BrowserPluginMsgStart | 28 #define IPC_MESSAGE_START BrowserPluginMsgStart |
| 29 | 29 |
| 30 IPC_ENUM_TRAITS(WebKit::WebDragStatus) | 30 IPC_ENUM_TRAITS(WebKit::WebDragStatus) |
| 31 | 31 |
| 32 // Browser plugin messages | 32 // Browser plugin messages |
| 33 | 33 |
| 34 // ----------------------------------------------------------------------------- | 34 // ----------------------------------------------------------------------------- |
| 35 // These messages are from the embedder to the browser process. | 35 // These messages are from the embedder to the browser process. |
| 36 | 36 |
| 37 // This message is sent to the browser process to enable or disable autosize | |
|
jam
2012/11/02 19:11:10
nit: put this comment on the IPC_MESSAGE, not the
Fady Samuel
2012/11/02 20:32:23
Done.
| |
| 38 // mode. | |
| 39 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) | |
|
jam
2012/11/02 19:11:10
nit: structs go at the top of the file and not by
Fady Samuel
2012/11/02 20:32:23
Done.
| |
| 40 IPC_STRUCT_MEMBER(int, enable) | |
| 41 IPC_STRUCT_MEMBER(int, maxheight) | |
|
jam
2012/11/02 19:11:10
max_height
Fady Samuel
2012/11/02 20:32:23
Done.
| |
| 42 IPC_STRUCT_MEMBER(int, maxwidth) | |
| 43 IPC_STRUCT_MEMBER(int, minheight) | |
| 44 IPC_STRUCT_MEMBER(int, minwidth) | |
| 45 IPC_STRUCT_END() | |
| 46 | |
| 47 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetAutoSize, | |
| 48 int /* instance_id */, | |
| 49 BrowserPluginHostMsg_AutoSize_Params) | |
| 50 | |
| 51 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) | |
| 52 IPC_STRUCT_MEMBER(std::string, storage_partition_id) | |
| 53 IPC_STRUCT_MEMBER(bool, persist_storage) | |
| 54 IPC_STRUCT_MEMBER(bool, focused) | |
| 55 IPC_STRUCT_MEMBER(bool, visible) | |
| 56 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, autosize) | |
| 57 IPC_STRUCT_END() | |
| 58 | |
| 37 // This message is sent to the browser process to create the browser plugin | 59 // This message is sent to the browser process to create the browser plugin |
| 38 // embedder and helper. It is sent once prior to sending the first | 60 // embedder and helper. It is sent once prior to sending the first |
| 39 // BrowserPluginHostMsg_NavigateGuest message. | 61 // BrowserPluginHostMsg_NavigateGuest message. |
| 40 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_CreateGuest, | 62 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CreateGuest, |
| 41 int /* instance_id */, | 63 int /* instance_id */, |
| 42 std::string /* storage_partition_id */, | 64 BrowserPluginHostMsg_CreateGuest_Params /* params */) |
| 43 bool /* persist_storage */, | |
| 44 bool /* focused */, | |
| 45 bool /* visible */) | |
| 46 | 65 |
| 47 // Tells the browser process to terminate the guest associated with the | 66 // Tells the browser process to terminate the guest associated with the |
| 48 // browser plugin associated with the provided |instance_id|. | 67 // browser plugin associated with the provided |instance_id|. |
| 49 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_TerminateGuest, | 68 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_TerminateGuest, |
| 50 int /* instance_id */) | 69 int /* instance_id */) |
| 51 | 70 |
| 52 // Tells the guest to navigate to an entry |relative_index| away from the | 71 // Tells the guest to navigate to an entry |relative_index| away from the |
| 53 // current navigation entry. | 72 // current navigation entry. |
| 54 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Go, | 73 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Go, |
| 55 int /* instance_id */, | 74 int /* instance_id */, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 279 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 261 int /* instance_id */, | 280 int /* instance_id */, |
| 262 bool /* accept */) | 281 bool /* accept */) |
| 263 | 282 |
| 264 // The guest has damage it wants to convey to the embedder so that it can | 283 // The guest has damage it wants to convey to the embedder so that it can |
| 265 // update its backing store. | 284 // update its backing store. |
| 266 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 285 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 267 int /* instance_id */, | 286 int /* instance_id */, |
| 268 int /* message_id */, | 287 int /* message_id */, |
| 269 BrowserPluginMsg_UpdateRect_Params) | 288 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |