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

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

Issue 10960003: Browser Plugin: Implement Back, Forward, and Go. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a test 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 // Tells the guest to navigate to the previous entry.
31 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_Back,
32 int /* instance_id */)
33
34 // Tells the guest to navigate to the next entry.
35 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_Forward,
36 int /* instance_id */)
37
38 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Go,
lazyboy 2012/09/20 20:05:42 Add comment for this one too.
Fady Samuel 2012/09/21 15:21:56 Done.
39 int /* instance_id */,
40 int /* relative_index */)
41
30 // Tells the guest to focus or defocus itself. 42 // Tells the guest to focus or defocus itself.
31 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, 43 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus,
32 int /* instance_id */, 44 int /* instance_id */,
33 bool /* enable */) 45 bool /* enable */)
34 46
35 // Message payload includes: 47 // Message payload includes:
36 // 1. A blob that should be cast to WebInputEvent 48 // 1. A blob that should be cast to WebInputEvent
37 // 2. An optional boolean value indicating if a RawKeyDown event is associated 49 // 2. An optional boolean value indicating if a RawKeyDown event is associated
38 // to a keyboard shortcut of the browser. 50 // to a keyboard shortcut of the browser.
39 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent, 51 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent,
(...skipping 109 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