| 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 <stddef.h> | 8 #include <stddef.h> | 
| 9 #include <stdint.h> | 9 #include <stdint.h> | 
| 10 | 10 | 
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 621 // node. | 621 // node. | 
| 622 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 622 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 
| 623                     bool /* reverse */) | 623                     bool /* reverse */) | 
| 624 | 624 | 
| 625 // Sent to inform the renderer to invoke a context menu. | 625 // Sent to inform the renderer to invoke a context menu. | 
| 626 // The parameter specifies the location in the render view's coordinates. | 626 // The parameter specifies the location in the render view's coordinates. | 
| 627 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, | 627 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, | 
| 628                     ui::MenuSourceType, | 628                     ui::MenuSourceType, | 
| 629                     gfx::Point /* location where menu should be shown */) | 629                     gfx::Point /* location where menu should be shown */) | 
| 630 | 630 | 
| 631 // Copies the image at location x, y to the clipboard (if there indeed is an |  | 
| 632 // image at that location). |  | 
| 633 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |  | 
| 634                     int /* x */, |  | 
| 635                     int /* y */) |  | 
| 636 |  | 
| 637 // Saves the image at location x, y to the disk (if there indeed is an |  | 
| 638 // image at that location). |  | 
| 639 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt, |  | 
| 640                     int /* x */, |  | 
| 641                     int /* y */) |  | 
| 642 |  | 
| 643 // Tells the renderer to perform the given action on the media player | 631 // Tells the renderer to perform the given action on the media player | 
| 644 // located at the given point. | 632 // located at the given point. | 
| 645 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 633 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 
| 646                     gfx::Point, /* location */ | 634                     gfx::Point, /* location */ | 
| 647                     blink::WebMediaPlayerAction) | 635                     blink::WebMediaPlayerAction) | 
| 648 | 636 | 
| 649 // Tells the renderer to perform the given action on the plugin located at | 637 // Tells the renderer to perform the given action on the plugin located at | 
| 650 // the given point. | 638 // the given point. | 
| 651 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 639 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 
| 652                     gfx::Point, /* location */ | 640                     gfx::Point, /* location */ | 
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1022 // hop. | 1010 // hop. | 
| 1023 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1011 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 
| 1024                      IPC::Message /* message */) | 1012                      IPC::Message /* message */) | 
| 1025 | 1013 | 
| 1026 // Tells the browser that a specific Appcache manifest in the current page | 1014 // Tells the browser that a specific Appcache manifest in the current page | 
| 1027 // was accessed. | 1015 // was accessed. | 
| 1028 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 1016 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 
| 1029                     GURL /* manifest url */, | 1017                     GURL /* manifest url */, | 
| 1030                     bool /* blocked by policy */) | 1018                     bool /* blocked by policy */) | 
| 1031 | 1019 | 
| 1032 // Initiates a download based on user actions like 'ALT+click'. |  | 
| 1033 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, |  | 
| 1034                      int /* render_view_id */, |  | 
| 1035                      int /* render_frame_id */, |  | 
| 1036                      GURL /* url */, |  | 
| 1037                      content::Referrer /* referrer */, |  | 
| 1038                      base::string16 /* suggested_name */) |  | 
| 1039 |  | 
| 1040 // Used to go to the session history entry at the given offset (ie, -1 will | 1020 // Used to go to the session history entry at the given offset (ie, -1 will | 
| 1041 // return the "back" item). | 1021 // return the "back" item). | 
| 1042 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1022 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 
| 1043                     int /* offset (from current) of history item to get */) | 1023                     int /* offset (from current) of history item to get */) | 
| 1044 | 1024 | 
| 1045 // Sent from an inactive renderer for the browser to route to the active | 1025 // Sent from an inactive renderer for the browser to route to the active | 
| 1046 // renderer, instructing it to close. | 1026 // renderer, instructing it to close. | 
| 1047 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1027 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 
| 1048 | 1028 | 
| 1049 // Notifies that the preferred size of the content changed. | 1029 // Notifies that the preferred size of the content changed. | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1096                     content::FileChooserParams) | 1076                     content::FileChooserParams) | 
| 1097 | 1077 | 
| 1098 // Asks the browser to enumerate a directory.  This is equivalent to running | 1078 // Asks the browser to enumerate a directory.  This is equivalent to running | 
| 1099 // the file chooser in directory-enumeration mode and having the user select | 1079 // the file chooser in directory-enumeration mode and having the user select | 
| 1100 // the given directory.  The result is returned in a | 1080 // the given directory.  The result is returned in a | 
| 1101 // ViewMsg_EnumerateDirectoryResponse message. | 1081 // ViewMsg_EnumerateDirectoryResponse message. | 
| 1102 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1082 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 
| 1103                     int /* request_id */, | 1083                     int /* request_id */, | 
| 1104                     base::FilePath /* file_path */) | 1084                     base::FilePath /* file_path */) | 
| 1105 | 1085 | 
| 1106 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |  | 
| 1107 // Note: |data_url| is the contents of a data:URL, and that it's represented as |  | 
| 1108 // a string only to work around size limitations for GURLs in IPC messages. |  | 
| 1109 IPC_MESSAGE_CONTROL3(ViewHostMsg_SaveImageFromDataURL, |  | 
| 1110                      int /* render_view_id */, |  | 
| 1111                      int /* render_frame_id */, |  | 
| 1112                      std::string /* data_url */) |  | 
| 1113 |  | 
| 1114 // Tells the browser to move the focus to the next (previous if reverse is | 1086 // Tells the browser to move the focus to the next (previous if reverse is | 
| 1115 // true) focusable element. | 1087 // true) focusable element. | 
| 1116 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1088 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 
| 1117                     bool /* reverse */) | 1089                     bool /* reverse */) | 
| 1118 | 1090 | 
| 1119 // Required for opening a date/time dialog | 1091 // Required for opening a date/time dialog | 
| 1120 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 1092 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 
| 1121                     ViewHostMsg_DateTimeDialogValue_Params /* value */) | 1093                     ViewHostMsg_DateTimeDialogValue_Params /* value */) | 
| 1122 | 1094 | 
| 1123 // Required for updating text input state. | 1095 // Required for updating text input state. | 
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1247                     int /* y */) | 1219                     int /* y */) | 
| 1248 | 1220 | 
| 1249 #elif defined(OS_MACOSX) | 1221 #elif defined(OS_MACOSX) | 
| 1250 // Receives content of a web page as plain text. | 1222 // Receives content of a web page as plain text. | 
| 1251 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1223 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 
| 1252 #endif | 1224 #endif | 
| 1253 | 1225 | 
| 1254 // Adding a new message? Stick to the sort order above: first platform | 1226 // Adding a new message? Stick to the sort order above: first platform | 
| 1255 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1227 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 
| 1256 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1228 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 
| OLD | NEW | 
|---|