| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 // 0 The parameter represents a composition string. | 364 // 0 The parameter represents a composition string. |
| 365 // * cursor_position (int) | 365 // * cursor_position (int) |
| 366 // Represents the position of the cursor | 366 // Represents the position of the cursor |
| 367 // * target_start (int) | 367 // * target_start (int) |
| 368 // Represents the position of the beginning of the selection | 368 // Represents the position of the beginning of the selection |
| 369 // * target_end (int) | 369 // * target_end (int) |
| 370 // Represents the position of the end of the selection | 370 // Represents the position of the end of the selection |
| 371 // * ime_string (std::wstring) | 371 // * ime_string (std::wstring) |
| 372 // Represents the string retrieved from IME (Input Method Editor) | 372 // Represents the string retrieved from IME (Input Method Editor) |
| 373 IPC_MESSAGE_ROUTED5(ViewMsg_ImeSetComposition, | 373 IPC_MESSAGE_ROUTED5(ViewMsg_ImeSetComposition, |
| 374 int, /* string_type */ | 374 WebKit::WebCompositionCommand, /* command */ |
| 375 int, /* cursor_position */ | 375 int, /* cursor_position */ |
| 376 int, /* target_start */ | 376 int, /* target_start */ |
| 377 int, /* target_end */ | 377 int, /* target_end */ |
| 378 std::wstring /* ime_string */ ) | 378 string16 /* ime_string */ ) |
| 379 | 379 |
| 380 // This passes a set of webkit preferences down to the renderer. | 380 // This passes a set of webkit preferences down to the renderer. |
| 381 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, WebPreferences) | 381 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, WebPreferences) |
| 382 | 382 |
| 383 // Used to notify the render-view that the browser has received a reply for | 383 // Used to notify the render-view that the browser has received a reply for |
| 384 // the Find operation and is interested in receiving the next one. This is | 384 // the Find operation and is interested in receiving the next one. This is |
| 385 // used to prevent the renderer from spamming the browser process with | 385 // used to prevent the renderer from spamming the browser process with |
| 386 // results. | 386 // results. |
| 387 IPC_MESSAGE_ROUTED0(ViewMsg_FindReplyACK) | 387 IPC_MESSAGE_ROUTED0(ViewMsg_FindReplyACK) |
| 388 | 388 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 // Tell the renderer process all known extension function names. | 561 // Tell the renderer process all known extension function names. |
| 562 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, | 562 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, |
| 563 std::vector<std::string>) | 563 std::vector<std::string>) |
| 564 | 564 |
| 565 // Tell the renderer process all known page action ids for a particular | 565 // Tell the renderer process all known page action ids for a particular |
| 566 // extension. | 566 // extension. |
| 567 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, | 567 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, |
| 568 std::string /* extension_id */, | 568 std::string /* extension_id */, |
| 569 std::vector<std::string> /* page_action_ids */) | 569 std::vector<std::string> /* page_action_ids */) |
| 570 | 570 |
| 571 // Changes the text direction of a selected input field. | 571 // Changes the text direction of the currently selected input field (if any). |
| 572 // * direction (int) | |
| 573 // Represents the new text direction. | |
| 574 // Its possible values are listed below: | |
| 575 // Value New Text Direction | |
| 576 // WEB_TEXT_DIRECTION_DEFAULT NaturalWritingDirection ("inherit") | |
| 577 // WEB_TEXT_DIRECTION_LTR LeftToRightWritingDirection ("rtl") | |
| 578 // WEB_TEXT_DIRECTION_RTL RightToLeftWritingDirection ("ltr") | |
| 579 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, | 572 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, |
| 580 int /* direction */) | 573 WebKit::WebTextDirection /* direction */) |
| 581 | 574 |
| 582 // Tells the renderer to clear the focused node (if any). | 575 // Tells the renderer to clear the focused node (if any). |
| 583 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) | 576 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) |
| 584 | 577 |
| 585 // Make the RenderView transparent and render it onto a custom background. The | 578 // Make the RenderView transparent and render it onto a custom background. The |
| 586 // background will be tiled in both directions if it is not large enough. | 579 // background will be tiled in both directions if it is not large enough. |
| 587 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, | 580 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, |
| 588 SkBitmap /* background */) | 581 SkBitmap /* background */) |
| 589 | 582 |
| 590 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and | 583 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 // web resource. |error_message| is a user-readable explanation of what | 1489 // web resource. |error_message| is a user-readable explanation of what |
| 1497 // went wrong. | 1490 // went wrong. |
| 1498 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, | 1491 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, |
| 1499 std::string /* error_message, if any */) | 1492 std::string /* error_message, if any */) |
| 1500 | 1493 |
| 1501 // Sent by the renderer process to acknowledge receipt of a | 1494 // Sent by the renderer process to acknowledge receipt of a |
| 1502 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. | 1495 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. |
| 1503 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) | 1496 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) |
| 1504 | 1497 |
| 1505 IPC_END_MESSAGES(ViewHost) | 1498 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |