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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // All the above coordinates are in DIP. This is the scale factor needed | 428 // All the above coordinates are in DIP. This is the scale factor needed |
429 // to convert them to pixels. | 429 // to convert them to pixels. |
430 IPC_STRUCT_MEMBER(float, scale_factor) | 430 IPC_STRUCT_MEMBER(float, scale_factor) |
431 IPC_STRUCT_END() | 431 IPC_STRUCT_END() |
432 | 432 |
433 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 433 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
434 // Renderer-wide preferences. | 434 // Renderer-wide preferences. |
435 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 435 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
436 | 436 |
437 // Preferences for this view. | 437 // Preferences for this view. |
438 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 438 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) |
439 | 439 |
440 // The ID of the view to be created. | 440 // The ID of the view to be created. |
441 IPC_STRUCT_MEMBER(int32, view_id) | 441 IPC_STRUCT_MEMBER(int32, view_id) |
442 | 442 |
443 // The ID of the main frame hosted in the view. | 443 // The ID of the main frame hosted in the view. |
444 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) | 444 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) |
445 | 445 |
446 // The ID of the rendering surface. | 446 // The ID of the rendering surface. |
447 IPC_STRUCT_MEMBER(int32, surface_id) | 447 IPC_STRUCT_MEMBER(int32, surface_id) |
448 | 448 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 // similar to the new command, but used when the renderer created a view | 565 // similar to the new command, but used when the renderer created a view |
566 // first, and we need to update it. | 566 // first, and we need to update it. |
567 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK) | 567 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK) |
568 | 568 |
569 // Sends updated preferences to the renderer. | 569 // Sends updated preferences to the renderer. |
570 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 570 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
571 content::RendererPreferences) | 571 content::RendererPreferences) |
572 | 572 |
573 // This passes a set of webkit preferences down to the renderer. | 573 // This passes a set of webkit preferences down to the renderer. |
574 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, | 574 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, |
575 WebPreferences) | 575 content::WebPreferences) |
576 | 576 |
577 // Informs the renderer that the timezone has changed. | 577 // Informs the renderer that the timezone has changed. |
578 IPC_MESSAGE_CONTROL0(ViewMsg_TimezoneChange) | 578 IPC_MESSAGE_CONTROL0(ViewMsg_TimezoneChange) |
579 | 579 |
580 // Tells the render view to close. | 580 // Tells the render view to close. |
581 // Expects a Close_ACK message when finished. | 581 // Expects a Close_ACK message when finished. |
582 IPC_MESSAGE_ROUTED0(ViewMsg_Close) | 582 IPC_MESSAGE_ROUTED0(ViewMsg_Close) |
583 | 583 |
584 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params) | 584 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params) |
585 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 585 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 // Since the browser keeps handles to the allocated transport DIBs, this | 1697 // Since the browser keeps handles to the allocated transport DIBs, this |
1698 // message is sent to tell the browser that it may release them when the | 1698 // message is sent to tell the browser that it may release them when the |
1699 // renderer is finished with them. | 1699 // renderer is finished with them. |
1700 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1700 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1701 TransportDIB::Id /* DIB id */) | 1701 TransportDIB::Id /* DIB id */) |
1702 #endif | 1702 #endif |
1703 | 1703 |
1704 // Adding a new message? Stick to the sort order above: first platform | 1704 // Adding a new message? Stick to the sort order above: first platform |
1705 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1705 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1706 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1706 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |