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.h" | 9 #include "base/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 | 1184 |
1185 // Activate/deactivate the RenderView (i.e., set its controls' tint | 1185 // Activate/deactivate the RenderView (i.e., set its controls' tint |
1186 // accordingly, etc.). | 1186 // accordingly, etc.). |
1187 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 1187 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
1188 bool /* active */) | 1188 bool /* active */) |
1189 | 1189 |
1190 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. | 1190 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
1191 // Sent when the worker has started. | 1191 // Sent when the worker has started. |
1192 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) | 1192 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
1193 | 1193 |
1194 // The response to ViewHostMsg_AsyncOpenFile. | 1194 // The response to ViewHostMsg_AsyncOpenPepperFile. |
1195 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 1195 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenPepperFile_ACK, |
1196 base::PlatformFileError /* error_code */, | 1196 base::PlatformFileError /* error_code */, |
1197 IPC::PlatformFileForTransit /* file descriptor */, | 1197 IPC::PlatformFileForTransit /* file descriptor */, |
1198 int /* message_id */) | 1198 int /* message_id */) |
1199 | 1199 |
1200 // Tells the renderer that the network state has changed and that | 1200 // Tells the renderer that the network state has changed and that |
1201 // window.navigator.onLine should be updated for all WebViews. | 1201 // window.navigator.onLine should be updated for all WebViews. |
1202 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1202 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
1203 bool /* online */) | 1203 bool /* online */) |
1204 | 1204 |
1205 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1205 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, | 2058 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, |
2059 uint32 /* output_surface_id */, | 2059 uint32 /* output_surface_id */, |
2060 cc::CompositorFrame /* frame */) | 2060 cc::CompositorFrame /* frame */) |
2061 | 2061 |
2062 // Sent by the compositor when input scroll events are dropped due to bounds | 2062 // Sent by the compositor when input scroll events are dropped due to bounds |
2063 // restricions on the root scroll offset. | 2063 // restricions on the root scroll offset. |
2064 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, | 2064 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, |
2065 gfx::Vector2dF /* accumulated_overscroll */, | 2065 gfx::Vector2dF /* accumulated_overscroll */, |
2066 gfx::Vector2dF /* current_fling_velocity */) | 2066 gfx::Vector2dF /* current_fling_velocity */) |
2067 | 2067 |
2068 // Opens a file asynchronously. The response returns a file descriptor | 2068 // Opens a Pepper file asynchronously. The response returns a file descriptor |
2069 // and an error code from base/platform_file.h. | 2069 // and an error code from base/platform_file.h. |
2070 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, | 2070 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenPepperFile, |
2071 base::FilePath /* file path */, | 2071 base::FilePath /* file path */, |
2072 int /* flags */, | 2072 int /* pp_open_flags */, |
2073 int /* message_id */) | 2073 int /* message_id */) |
2074 | 2074 |
2075 // Reply to a snapshot request containing whether snapshotting succeeded and the | 2075 // Reply to a snapshot request containing whether snapshotting succeeded and the |
2076 // SkBitmap if it succeeded. | 2076 // SkBitmap if it succeeded. |
2077 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, | 2077 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, |
2078 bool, /* success */ | 2078 bool, /* success */ |
2079 SkBitmap /* bitmap */) | 2079 SkBitmap /* bitmap */) |
2080 | 2080 |
2081 //--------------------------------------------------------------------------- | 2081 //--------------------------------------------------------------------------- |
2082 // Request for cryptographic operation messages: | 2082 // Request for cryptographic operation messages: |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 // synchronously (see crbug.com/120597). This IPC message sends the character | 2347 // synchronously (see crbug.com/120597). This IPC message sends the character |
2348 // bounds after every composition change to always have correct bound info. | 2348 // bounds after every composition change to always have correct bound info. |
2349 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2349 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2350 ui::Range /* composition range */, | 2350 ui::Range /* composition range */, |
2351 std::vector<gfx::Rect> /* character bounds */) | 2351 std::vector<gfx::Rect> /* character bounds */) |
2352 #endif | 2352 #endif |
2353 | 2353 |
2354 // Adding a new message? Stick to the sort order above: first platform | 2354 // Adding a new message? Stick to the sort order above: first platform |
2355 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2355 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2356 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2356 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |