| 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 | 1211 |
| 1212 // Activate/deactivate the RenderView (i.e., set its controls' tint | 1212 // Activate/deactivate the RenderView (i.e., set its controls' tint |
| 1213 // accordingly, etc.). | 1213 // accordingly, etc.). |
| 1214 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 1214 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
| 1215 bool /* active */) | 1215 bool /* active */) |
| 1216 | 1216 |
| 1217 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. | 1217 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
| 1218 // Sent when the worker has started. | 1218 // Sent when the worker has started. |
| 1219 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) | 1219 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
| 1220 | 1220 |
| 1221 // The response to ViewHostMsg_AsyncOpenPepperFile. | |
| 1222 IPC_MESSAGE_ROUTED2(ViewMsg_AsyncOpenPepperFile_ACK, | |
| 1223 base::PlatformFileError /* error_code */, | |
| 1224 IPC::PlatformFileForTransit /* file descriptor */) | |
| 1225 | |
| 1226 // Tells the renderer that the network state has changed and that | 1221 // Tells the renderer that the network state has changed and that |
| 1227 // window.navigator.onLine should be updated for all WebViews. | 1222 // window.navigator.onLine should be updated for all WebViews. |
| 1228 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1223 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
| 1229 bool /* online */) | 1224 bool /* online */) |
| 1230 | 1225 |
| 1231 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1226 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
| 1232 // Tells the renderer that the channel to the broker has been created. | 1227 // Tells the renderer that the channel to the broker has been created. |
| 1233 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 1228 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
| 1234 base::ProcessId /* broker_pid */, | 1229 base::ProcessId /* broker_pid */, |
| 1235 IPC::ChannelHandle /* handle */) | 1230 IPC::ChannelHandle /* handle */) |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 | 1917 |
| 1923 // A renderer sends this to the browser process when it wants to | 1918 // A renderer sends this to the browser process when it wants to |
| 1924 // create a ppapi broker. The browser will create the broker process | 1919 // create a ppapi broker. The browser will create the broker process |
| 1925 // if necessary, and will return a handle to the channel on success. | 1920 // if necessary, and will return a handle to the channel on success. |
| 1926 // On error an empty string is returned. | 1921 // On error an empty string is returned. |
| 1927 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1922 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
| 1928 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker, | 1923 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker, |
| 1929 int /* routing_id */, | 1924 int /* routing_id */, |
| 1930 base::FilePath /* path */) | 1925 base::FilePath /* path */) |
| 1931 | 1926 |
| 1932 // Opens a Pepper file asynchronously. The response returns a file descriptor | |
| 1933 // and an error code from base/platform_file.h. | |
| 1934 IPC_MESSAGE_CONTROL3(ViewHostMsg_AsyncOpenPepperFile, | |
| 1935 int /* routing_id */, | |
| 1936 base::FilePath /* file path */, | |
| 1937 int /* pp_open_flags */) | |
| 1938 | |
| 1939 // A renderer sends this to the browser process when it wants to access a PPAPI | 1927 // A renderer sends this to the browser process when it wants to access a PPAPI |
| 1940 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called | 1928 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called |
| 1941 // for every connection. | 1929 // for every connection. |
| 1942 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. | 1930 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
| 1943 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, | 1931 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
| 1944 int /* routing_id */, | 1932 int /* routing_id */, |
| 1945 GURL /* document_url */, | 1933 GURL /* document_url */, |
| 1946 base::FilePath /* plugin_path */) | 1934 base::FilePath /* plugin_path */) |
| 1947 | 1935 |
| 1948 #if defined(USE_X11) | 1936 #if defined(USE_X11) |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 // synchronously (see crbug.com/120597). This IPC message sends the character | 2352 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2365 // bounds after every composition change to always have correct bound info. | 2353 // bounds after every composition change to always have correct bound info. |
| 2366 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2354 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2367 gfx::Range /* composition range */, | 2355 gfx::Range /* composition range */, |
| 2368 std::vector<gfx::Rect> /* character bounds */) | 2356 std::vector<gfx::Rect> /* character bounds */) |
| 2369 #endif | 2357 #endif |
| 2370 | 2358 |
| 2371 // Adding a new message? Stick to the sort order above: first platform | 2359 // Adding a new message? Stick to the sort order above: first platform |
| 2372 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2360 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2373 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2361 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |