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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 692 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
693 gfx::Point, /* location */ | 693 gfx::Point, /* location */ |
694 blink::WebMediaPlayerAction) | 694 blink::WebMediaPlayerAction) |
695 | 695 |
696 // Tells the renderer to perform the given action on the plugin located at | 696 // Tells the renderer to perform the given action on the plugin located at |
697 // the given point. | 697 // the given point. |
698 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 698 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
699 gfx::Point, /* location */ | 699 gfx::Point, /* location */ |
700 blink::WebPluginAction) | 700 blink::WebPluginAction) |
701 | 701 |
702 // Request for the renderer to evaluate an xpath to a frame and execute a | |
703 // javascript: url in that frame's context. The message is completely | |
704 // asynchronous and no corresponding response message is sent back. | |
705 // | |
706 // frame_xpath contains the modified xpath notation to identify an inner | |
707 // subframe (starting from the root frame). It is a concatenation of | |
708 // number of smaller xpaths delimited by '\n'. Each chunk in the string can | |
709 // be evaluated to a frame in its parent-frame's context. | |
710 // | |
711 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] | |
712 // can be broken into 3 xpaths | |
713 // /html/body/iframe evaluates to an iframe within the root frame | |
714 // /html/body/div/iframe evaluates to an iframe within the level-1 iframe | |
715 // /frameset/frame[0] evaluates to first frame within the level-2 iframe | |
716 // | |
717 // jscript_url is the string containing the javascript: url to be executed | |
718 // in the target frame's context. The string should start with "javascript:" | |
719 // and continue with a valid JS text. | |
720 // | |
721 // If the fourth parameter is true the result is sent back to the renderer | |
722 // using the message ViewHostMsg_ScriptEvalResponse. | |
723 // ViewHostMsg_ScriptEvalResponse is passed the ID parameter so that the | |
724 // client can uniquely identify the request. | |
725 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest, | |
726 base::string16, /* frame_xpath */ | |
727 base::string16, /* jscript_url */ | |
728 int, /* ID */ | |
729 bool /* If true, result is sent back. */) | |
730 | |
731 // Posts a message from a frame in another process to the current renderer. | 702 // Posts a message from a frame in another process to the current renderer. |
732 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, | 703 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, |
733 ViewMsg_PostMessage_Params) | 704 ViewMsg_PostMessage_Params) |
734 | 705 |
735 // Requests that the RenderView's main frame sets its opener to null. | 706 // Requests that the RenderView's main frame sets its opener to null. |
736 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) | 707 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) |
737 | 708 |
738 // Change the zoom level for the current main frame. If the level actually | 709 // Change the zoom level for the current main frame. If the level actually |
739 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 710 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
740 // telling it what url got zoomed and what its current zoom level is. | 711 // telling it what url got zoomed and what its current zoom level is. |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, | 1141 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, |
1171 gfx::Rect /* position */) | 1142 gfx::Rect /* position */) |
1172 | 1143 |
1173 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1144 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1174 // Message to show/hide a popup menu using native controls. | 1145 // Message to show/hide a popup menu using native controls. |
1175 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1146 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
1176 ViewHostMsg_ShowPopup_Params) | 1147 ViewHostMsg_ShowPopup_Params) |
1177 IPC_MESSAGE_ROUTED0(ViewHostMsg_HidePopup) | 1148 IPC_MESSAGE_ROUTED0(ViewHostMsg_HidePopup) |
1178 #endif | 1149 #endif |
1179 | 1150 |
1180 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | |
1181 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | |
1182 // script as its only element, one of Null, Boolean, Integer, Real, Date, or | |
1183 // String. | |
1184 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | |
1185 int /* id */, | |
1186 base::ListValue /* result */) | |
1187 | |
1188 // Result of string search in the page. | 1151 // Result of string search in the page. |
1189 // Response to ViewMsg_Find with the results of the requested find-in-page | 1152 // Response to ViewMsg_Find with the results of the requested find-in-page |
1190 // search, the number of matches found and the selection rect (in screen | 1153 // search, the number of matches found and the selection rect (in screen |
1191 // coordinates) for the string found. If |final_update| is false, it signals | 1154 // coordinates) for the string found. If |final_update| is false, it signals |
1192 // that this is not the last Find_Reply message - more will be sent as the | 1155 // that this is not the last Find_Reply message - more will be sent as the |
1193 // scoping effort continues. | 1156 // scoping effort continues. |
1194 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, | 1157 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, |
1195 int /* request_id */, | 1158 int /* request_id */, |
1196 int /* number of matches */, | 1159 int /* number of matches */, |
1197 gfx::Rect /* selection_rect */, | 1160 gfx::Rect /* selection_rect */, |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 // synchronously (see crbug.com/120597). This IPC message sends the character | 1903 // synchronously (see crbug.com/120597). This IPC message sends the character |
1941 // bounds after every composition change to always have correct bound info. | 1904 // bounds after every composition change to always have correct bound info. |
1942 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1905 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1943 gfx::Range /* composition range */, | 1906 gfx::Range /* composition range */, |
1944 std::vector<gfx::Rect> /* character bounds */) | 1907 std::vector<gfx::Rect> /* character bounds */) |
1945 #endif | 1908 #endif |
1946 | 1909 |
1947 // Adding a new message? Stick to the sort order above: first platform | 1910 // Adding a new message? Stick to the sort order above: first platform |
1948 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1911 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1949 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1912 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |