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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "cc/output/begin_frame_args.h" |
11 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
12 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
13 #include "content/common/browser_rendering_stats.h" | 14 #include "content/common/browser_rendering_stats.h" |
14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
15 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
16 #include "content/common/navigation_gesture.h" | 17 #include "content/common/navigation_gesture.h" |
17 #include "content/common/pepper_renderer_instance_data.h" | 18 #include "content/common/pepper_renderer_instance_data.h" |
18 #include "content/common/view_message_enums.h" | 19 #include "content/common/view_message_enums.h" |
19 #include "content/port/common/input_event_ack_state.h" | 20 #include "content/port/common/input_event_ack_state.h" |
20 #include "content/public/common/common_param_traits.h" | 21 #include "content/public/common/common_param_traits.h" |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 // and whether or not to animate to the proper state. | 1272 // and whether or not to animate to the proper state. |
1272 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 1273 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
1273 bool /* enable_hiding */, | 1274 bool /* enable_hiding */, |
1274 bool /* enable_showing */, | 1275 bool /* enable_showing */, |
1275 bool /* animate */) | 1276 bool /* animate */) |
1276 | 1277 |
1277 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1278 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
1278 | 1279 |
1279 // Sent by the browser when the renderer should generate a new frame. | 1280 // Sent by the browser when the renderer should generate a new frame. |
1280 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 1281 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
1281 base::TimeTicks /* frame_time */) | 1282 cc::BeginFrameArgs /* args */) |
1282 | 1283 |
1283 #elif defined(OS_MACOSX) | 1284 #elif defined(OS_MACOSX) |
1284 // Let the RenderView know its window has changed visibility. | 1285 // Let the RenderView know its window has changed visibility. |
1285 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 1286 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
1286 bool /* visibile */) | 1287 bool /* visibile */) |
1287 | 1288 |
1288 // Let the RenderView know its window's frame has changed. | 1289 // Let the RenderView know its window's frame has changed. |
1289 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 1290 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
1290 gfx::Rect /* window frame */, | 1291 gfx::Rect /* window frame */, |
1291 gfx::Rect /* content view frame */) | 1292 gfx::Rect /* content view frame */) |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 // Since the browser keeps handles to the allocated transport DIBs, this | 2311 // Since the browser keeps handles to the allocated transport DIBs, this |
2311 // message is sent to tell the browser that it may release them when the | 2312 // message is sent to tell the browser that it may release them when the |
2312 // renderer is finished with them. | 2313 // renderer is finished with them. |
2313 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2314 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2314 TransportDIB::Id /* DIB id */) | 2315 TransportDIB::Id /* DIB id */) |
2315 #endif | 2316 #endif |
2316 | 2317 |
2317 // Adding a new message? Stick to the sort order above: first platform | 2318 // Adding a new message? Stick to the sort order above: first platform |
2318 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2319 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2319 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2320 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |