Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: content/common/browser_plugin_messages.h

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
13 #include "ipc/ipc_channel_handle.h" 13 #include "ipc/ipc_channel_handle.h"
14 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h" 15 #include "ipc/ipc_message_utils.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 #include "webkit/glue/webcursor.h" 18 #include "webkit/glue/webcursor.h"
19 19
20 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 22
23 #define IPC_MESSAGE_START BrowserPluginMsgStart 23 #define IPC_MESSAGE_START BrowserPluginMsgStart
24 24
25 // Browser plugin messages 25 // Browser plugin messages
26 26
27 // ----------------------------------------------------------------------------- 27 // -----------------------------------------------------------------------------
28 // These messages are from the embedder to the browser process. 28 // These messages are from the embedder to the browser process.
29 29
30 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_RouteMessageEvent,
31 int /* instance_id */,
32 string16 /* data */,
33 string16 /* target_origin */)
34
30 // Tells the guest to focus or defocus itself. 35 // Tells the guest to focus or defocus itself.
31 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, 36 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus,
32 int /* instance_id */, 37 int /* instance_id */,
33 bool /* enable */) 38 bool /* enable */)
34 39
35 // Message payload includes: 40 // Message payload includes:
36 // 1. A blob that should be cast to WebInputEvent 41 // 1. A blob that should be cast to WebInputEvent
37 // 2. An optional boolean value indicating if a RawKeyDown event is associated 42 // 2. An optional boolean value indicating if a RawKeyDown event is associated
38 // to a keyboard shortcut of the browser. 43 // to a keyboard shortcut of the browser.
39 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent, 44 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // A embedder sends this message to the browser when it wants 96 // A embedder sends this message to the browser when it wants
92 // to resize a guest plugin container so that the guest is relaid out 97 // to resize a guest plugin container so that the guest is relaid out
93 // according to the new size. 98 // according to the new size.
94 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, 99 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest,
95 int /* instance_id*/, 100 int /* instance_id*/,
96 BrowserPluginHostMsg_ResizeGuest_Params) 101 BrowserPluginHostMsg_ResizeGuest_Params)
97 102
98 // ----------------------------------------------------------------------------- 103 // -----------------------------------------------------------------------------
99 // These messages are from the browser process to the embedder. 104 // These messages are from the browser process to the embedder.
100 105
106 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_ReceiveMessage,
107 int /* instance_id */,
108 int /* source_routing_id */,
109 string16 /* source_origin */,
110 string16 /* data */)
111
112
101 // When the guest navigates, the browser process informs the embedder through 113 // When the guest navigates, the browser process informs the embedder through
102 // the BrowserPluginMsg_DidNavigate message. 114 // the BrowserPluginMsg_DidNavigate message.
103 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate, 115 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate,
104 int /* instance_id */, 116 int /* instance_id */,
105 GURL /* url */) 117 GURL /* url */)
106 118
107 // When the guest crashes, the browser process informs the embedder through this 119 // When the guest crashes, the browser process informs the embedder through this
108 // message. 120 // message.
109 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, 121 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
110 int /* instance_id */) 122 int /* instance_id */)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, 161 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus,
150 int /* instance_id */, 162 int /* instance_id */,
151 bool /* reverse */) 163 bool /* reverse */)
152 164
153 // The guest has damage it wants to convey to the embedder so that it can 165 // The guest has damage it wants to convey to the embedder so that it can
154 // update its backing store. 166 // update its backing store.
155 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 167 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
156 int /* instance_id */, 168 int /* instance_id */,
157 int /* message_id */, 169 int /* message_id */,
158 BrowserPluginMsg_UpdateRect_Params) 170 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698