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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // Whether to enable auto-resize. | 527 // Whether to enable auto-resize. |
528 IPC_STRUCT_MEMBER(bool, enable_auto_resize) | 528 IPC_STRUCT_MEMBER(bool, enable_auto_resize) |
529 | 529 |
530 // The minimum size to layout the page if auto-resize is enabled. | 530 // The minimum size to layout the page if auto-resize is enabled. |
531 IPC_STRUCT_MEMBER(gfx::Size, min_size) | 531 IPC_STRUCT_MEMBER(gfx::Size, min_size) |
532 | 532 |
533 // The maximum size to layout the page if auto-resize is enabled. | 533 // The maximum size to layout the page if auto-resize is enabled. |
534 IPC_STRUCT_MEMBER(gfx::Size, max_size) | 534 IPC_STRUCT_MEMBER(gfx::Size, max_size) |
535 IPC_STRUCT_END() | 535 IPC_STRUCT_END() |
536 | 536 |
537 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | |
538 // Whether the data format is supplied as serialized script value, or as | |
539 // a simple string. If it is a raw string, must be converted from string to a | |
540 // WebSerializedScriptValue in renderer. | |
541 IPC_STRUCT_MEMBER(bool, is_data_raw_string) | |
542 // The serialized script value. | |
543 IPC_STRUCT_MEMBER(base::string16, data) | |
544 // When sent to the browser, this is the routing ID of the source frame in | |
545 // the source process. The browser replaces it with the routing ID of the | |
546 // equivalent (swapped out) frame in the destination process. | |
547 IPC_STRUCT_MEMBER(int, source_routing_id) | |
548 | |
549 // The origin of the source frame. | |
550 IPC_STRUCT_MEMBER(base::string16, source_origin) | |
551 | |
552 // The origin for the message's target. | |
553 IPC_STRUCT_MEMBER(base::string16, target_origin) | |
554 | |
555 // Information about the MessagePorts this message contains. | |
556 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) | |
557 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) | |
558 IPC_STRUCT_END() | |
559 | |
560 // Messages sent from the browser to the renderer. | 537 // Messages sent from the browser to the renderer. |
561 | 538 |
562 #if defined(OS_ANDROID) | 539 #if defined(OS_ANDROID) |
563 // Tells the renderer to cancel an opened date/time dialog. | 540 // Tells the renderer to cancel an opened date/time dialog. |
564 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 541 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
565 | 542 |
566 // Replaces a date time input field. | 543 // Replaces a date time input field. |
567 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 544 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
568 double /* dialog_value */) | 545 double /* dialog_value */) |
569 | 546 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 680 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
704 gfx::Point, /* location */ | 681 gfx::Point, /* location */ |
705 blink::WebMediaPlayerAction) | 682 blink::WebMediaPlayerAction) |
706 | 683 |
707 // Tells the renderer to perform the given action on the plugin located at | 684 // Tells the renderer to perform the given action on the plugin located at |
708 // the given point. | 685 // the given point. |
709 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 686 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
710 gfx::Point, /* location */ | 687 gfx::Point, /* location */ |
711 blink::WebPluginAction) | 688 blink::WebPluginAction) |
712 | 689 |
713 // Posts a message from a frame in another process to the current renderer. | |
714 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, | |
715 ViewMsg_PostMessage_Params) | |
716 | |
717 // Resets the page scale for the current main frame to the default page scale. | 690 // Resets the page scale for the current main frame to the default page scale. |
718 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) | 691 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) |
719 | 692 |
720 // Change the zoom level for the current main frame. If the level actually | 693 // Change the zoom level for the current main frame. If the level actually |
721 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 694 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
722 // telling it what url got zoomed and what its current zoom level is. | 695 // telling it what url got zoomed and what its current zoom level is. |
723 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 696 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
724 content::PageZoom /* function */) | 697 content::PageZoom /* function */) |
725 | 698 |
726 // Set the zoom level for a particular url that the renderer is in the | 699 // Set the zoom level for a particular url that the renderer is in the |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 | 1251 |
1279 // Used to go to the session history entry at the given offset (ie, -1 will | 1252 // Used to go to the session history entry at the given offset (ie, -1 will |
1280 // return the "back" item). | 1253 // return the "back" item). |
1281 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1254 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
1282 int /* offset (from current) of history item to get */) | 1255 int /* offset (from current) of history item to get */) |
1283 | 1256 |
1284 // Sent from an inactive renderer for the browser to route to the active | 1257 // Sent from an inactive renderer for the browser to route to the active |
1285 // renderer, instructing it to close. | 1258 // renderer, instructing it to close. |
1286 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1259 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) |
1287 | 1260 |
1288 // Sent to the browser from an inactive renderer to post a message to the | |
1289 // active renderer. | |
1290 IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent, | |
1291 ViewMsg_PostMessage_Params) | |
1292 | |
1293 // Notifies that the preferred size of the content changed. | 1261 // Notifies that the preferred size of the content changed. |
1294 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1262 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
1295 gfx::Size /* pref_size */) | 1263 gfx::Size /* pref_size */) |
1296 | 1264 |
1297 // Notifies whether there are JavaScript touch event handlers or not. | 1265 // Notifies whether there are JavaScript touch event handlers or not. |
1298 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1266 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
1299 bool /* has_handlers */) | 1267 bool /* has_handlers */) |
1300 | 1268 |
1301 // A message from HTML-based UI. When (trusted) Javascript calls | 1269 // A message from HTML-based UI. When (trusted) Javascript calls |
1302 // send(message, args), this message is sent to the browser. | 1270 // send(message, args), this message is sent to the browser. |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1640 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
1673 // for details. | 1641 // for details. |
1674 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1642 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
1675 LOGFONT /* font_data */, | 1643 LOGFONT /* font_data */, |
1676 base::string16 /* characters */) | 1644 base::string16 /* characters */) |
1677 #endif | 1645 #endif |
1678 | 1646 |
1679 // Adding a new message? Stick to the sort order above: first platform | 1647 // Adding a new message? Stick to the sort order above: first platform |
1680 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1648 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1681 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1649 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |