| 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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 // and whether or not to animate to the proper state. | 1277 // and whether or not to animate to the proper state. |
| 1277 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 1278 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
| 1278 bool /* enable_hiding */, | 1279 bool /* enable_hiding */, |
| 1279 bool /* enable_showing */, | 1280 bool /* enable_showing */, |
| 1280 bool /* animate */) | 1281 bool /* animate */) |
| 1281 | 1282 |
| 1282 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1283 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
| 1283 | 1284 |
| 1284 // Sent by the browser when the renderer should generate a new frame. | 1285 // Sent by the browser when the renderer should generate a new frame. |
| 1285 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 1286 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| 1286 base::TimeTicks /* frame_time */) | 1287 cc::BeginFrameArgs /* args */) |
| 1287 | 1288 |
| 1288 #elif defined(OS_MACOSX) | 1289 #elif defined(OS_MACOSX) |
| 1289 // Let the RenderView know its window has changed visibility. | 1290 // Let the RenderView know its window has changed visibility. |
| 1290 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 1291 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
| 1291 bool /* visibile */) | 1292 bool /* visibile */) |
| 1292 | 1293 |
| 1293 // Let the RenderView know its window's frame has changed. | 1294 // Let the RenderView know its window's frame has changed. |
| 1294 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 1295 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| 1295 gfx::Rect /* window frame */, | 1296 gfx::Rect /* window frame */, |
| 1296 gfx::Rect /* content view frame */) | 1297 gfx::Rect /* content view frame */) |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2319 // Since the browser keeps handles to the allocated transport DIBs, this | 2320 // Since the browser keeps handles to the allocated transport DIBs, this |
| 2320 // message is sent to tell the browser that it may release them when the | 2321 // message is sent to tell the browser that it may release them when the |
| 2321 // renderer is finished with them. | 2322 // renderer is finished with them. |
| 2322 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2323 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 2323 TransportDIB::Id /* DIB id */) | 2324 TransportDIB::Id /* DIB id */) |
| 2324 #endif | 2325 #endif |
| 2325 | 2326 |
| 2326 // Adding a new message? Stick to the sort order above: first platform | 2327 // Adding a new message? Stick to the sort order above: first platform |
| 2327 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2328 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2328 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2329 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |