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 14 matching lines...) Expand all Loading... |
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 focus or defocus itself. | 30 // Tells the guest to focus or defocus itself. |
31 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, | 31 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, |
32 int /* instance_id */, | 32 int /* instance_id */, |
33 bool /* enable */) | 33 bool /* enable */) |
34 | 34 |
| 35 // Tell the guest to stop loading. |
| 36 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_Stop, |
| 37 int /* instance_id */) |
| 38 |
| 39 /// Tell the guest to reload. |
| 40 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_Reload, |
| 41 int /* instance_id */) |
| 42 |
35 // Message payload includes: | 43 // Message payload includes: |
36 // 1. A blob that should be cast to WebInputEvent | 44 // 1. A blob that should be cast to WebInputEvent |
37 // 2. An optional boolean value indicating if a RawKeyDown event is associated | 45 // 2. An optional boolean value indicating if a RawKeyDown event is associated |
38 // to a keyboard shortcut of the browser. | 46 // to a keyboard shortcut of the browser. |
39 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent, | 47 IPC_SYNC_MESSAGE_ROUTED0_2(BrowserPluginHostMsg_HandleInputEvent, |
40 bool /* handled */, | 48 bool /* handled */, |
41 WebCursor /* cursor */) | 49 WebCursor /* cursor */) |
42 | 50 |
43 // An ACK to the guest process letting it know that the embedder has handled | 51 // An ACK to the guest process letting it know that the embedder has handled |
44 // the previous frame and is ready for the next frame. If the guest sent the | 52 // the previous frame and is ready for the next frame. If the guest sent the |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, | 157 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, |
150 int /* instance_id */, | 158 int /* instance_id */, |
151 bool /* reverse */) | 159 bool /* reverse */) |
152 | 160 |
153 // The guest has damage it wants to convey to the embedder so that it can | 161 // The guest has damage it wants to convey to the embedder so that it can |
154 // update its backing store. | 162 // update its backing store. |
155 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 163 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
156 int /* instance_id */, | 164 int /* instance_id */, |
157 int /* message_id */, | 165 int /* message_id */, |
158 BrowserPluginMsg_UpdateRect_Params) | 166 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |