| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) | 242 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) |
| 243 | 243 |
| 244 // TODO(darin): figure out how this meshes with RestoreFocus | 244 // TODO(darin): figure out how this meshes with RestoreFocus |
| 245 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) | 245 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) |
| 246 | 246 |
| 247 // Tells the renderer to focus the first (last if reverse is true) focusable | 247 // Tells the renderer to focus the first (last if reverse is true) focusable |
| 248 // node. | 248 // node. |
| 249 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) | 249 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) |
| 250 | 250 |
| 251 // Tells the renderer to scroll the currently focused node into view only if |
| 252 // the currently focused node is a Text node (textfield, text area or content |
| 253 // editable divs). |
| 254 IPC_MESSAGE_ROUTED0(ViewMsg_ScrollFocusedEditableNodeIntoView) |
| 255 |
| 251 // Tells the renderer to perform the specified navigation, interrupting any | 256 // Tells the renderer to perform the specified navigation, interrupting any |
| 252 // existing navigation. | 257 // existing navigation. |
| 253 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) | 258 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) |
| 254 | 259 |
| 255 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) | 260 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) |
| 256 | 261 |
| 257 // Tells the renderer to reload the current focused frame | 262 // Tells the renderer to reload the current focused frame |
| 258 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) | 263 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) |
| 259 | 264 |
| 260 // This message notifies the renderer that the user has closed the FindInPage | 265 // This message notifies the renderer that the user has closed the FindInPage |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 bool /* true if the GPU process renders to window */) | 1316 bool /* true if the GPU process renders to window */) |
| 1312 | 1317 |
| 1313 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. | 1318 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. |
| 1314 // Payload is a WebInputEvent::Type which is the type of the event, followed | 1319 // Payload is a WebInputEvent::Type which is the type of the event, followed |
| 1315 // by an optional WebInputEvent which is provided only if the event was not | 1320 // by an optional WebInputEvent which is provided only if the event was not |
| 1316 // processed. | 1321 // processed. |
| 1317 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) | 1322 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) |
| 1318 | 1323 |
| 1319 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1324 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
| 1320 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1325 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
| 1321 IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged) | 1326 |
| 1327 // Message sent from renderer to the browser when focus changes inside the |
| 1328 // webpage. The parameter says whether the newly focused element needs |
| 1329 // keyboard input (true for textfields, text areas and content editable divs). |
| 1330 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
| 1331 bool /* is_editable_node */) |
| 1322 | 1332 |
| 1323 // Returns the window location of the given window. | 1333 // Returns the window location of the given window. |
| 1324 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1334 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
| 1325 // HWND so that we can eliminate the NativeViewId parameter. | 1335 // HWND so that we can eliminate the NativeViewId parameter. |
| 1326 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect, | 1336 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect, |
| 1327 gfx::NativeViewId /* window */, | 1337 gfx::NativeViewId /* window */, |
| 1328 gfx::Rect /* Out: Window location */) | 1338 gfx::Rect /* Out: Window location */) |
| 1329 | 1339 |
| 1330 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, WebCursor) | 1340 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, WebCursor) |
| 1331 // Result of string search in the page. | 1341 // Result of string search in the page. |
| (...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3045 base::PlatformFileInfo, /* info */ | 3055 base::PlatformFileInfo, /* info */ |
| 3046 base::PlatformFileError /* error_code */) | 3056 base::PlatformFileError /* error_code */) |
| 3047 | 3057 |
| 3048 // Get the directory's contents. | 3058 // Get the directory's contents. |
| 3049 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, | 3059 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, |
| 3050 FilePath /* path */, | 3060 FilePath /* path */, |
| 3051 PepperDirContents, /* contents */ | 3061 PepperDirContents, /* contents */ |
| 3052 base::PlatformFileError /* error_code */) | 3062 base::PlatformFileError /* error_code */) |
| 3053 | 3063 |
| 3054 IPC_END_MESSAGES(ViewHost) | 3064 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |