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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
62 #include "content/common/mac/font_descriptor.h" | 62 #include "content/common/mac/font_descriptor.h" |
63 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 63 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
64 #endif | 64 #endif |
65 | 65 |
66 #undef IPC_MESSAGE_EXPORT | 66 #undef IPC_MESSAGE_EXPORT |
67 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 67 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
68 | 68 |
69 #define IPC_MESSAGE_START ViewMsgStart | 69 #define IPC_MESSAGE_START ViewMsgStart |
70 | 70 |
| 71 IPC_ENUM_TRAITS(AccessibilityMode) |
71 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 72 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
72 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 73 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
73 IPC_ENUM_TRAITS(blink::WebPopupType) | 74 IPC_ENUM_TRAITS(blink::WebPopupType) |
74 IPC_ENUM_TRAITS(blink::WebTextDirection) | 75 IPC_ENUM_TRAITS(blink::WebTextDirection) |
75 IPC_ENUM_TRAITS(WindowContainerType) | 76 IPC_ENUM_TRAITS(WindowContainerType) |
76 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 77 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
77 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 78 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
78 IPC_ENUM_TRAITS(content::MenuItem::Type) | 79 IPC_ENUM_TRAITS(content::MenuItem::Type) |
79 IPC_ENUM_TRAITS(content::NavigationGesture) | 80 IPC_ENUM_TRAITS(content::NavigationGesture) |
80 IPC_ENUM_TRAITS(content::PageZoom) | 81 IPC_ENUM_TRAITS(content::PageZoom) |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // Whether the window associated with this view was created with an opener. | 472 // Whether the window associated with this view was created with an opener. |
472 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) | 473 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) |
473 | 474 |
474 // The initial page ID to use for this view, which must be larger than any | 475 // The initial page ID to use for this view, which must be larger than any |
475 // existing navigation that might be loaded in the view. Page IDs are unique | 476 // existing navigation that might be loaded in the view. Page IDs are unique |
476 // to a view and are only updated by the renderer after this initial value. | 477 // to a view and are only updated by the renderer after this initial value. |
477 IPC_STRUCT_MEMBER(int32, next_page_id) | 478 IPC_STRUCT_MEMBER(int32, next_page_id) |
478 | 479 |
479 // The properties of the screen associated with the view. | 480 // The properties of the screen associated with the view. |
480 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 481 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
| 482 |
| 483 // The accessibility mode of the renderer. |
| 484 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) |
481 IPC_STRUCT_END() | 485 IPC_STRUCT_END() |
482 | 486 |
483 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 487 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
484 // The serialized script value. | 488 // The serialized script value. |
485 IPC_STRUCT_MEMBER(base::string16, data) | 489 IPC_STRUCT_MEMBER(base::string16, data) |
486 | 490 |
487 // When sent to the browser, this is the routing ID of the source frame in | 491 // When sent to the browser, this is the routing ID of the source frame in |
488 // the source process. The browser replaces it with the routing ID of the | 492 // the source process. The browser replaces it with the routing ID of the |
489 // equivalent (swapped out) frame in the destination process. | 493 // equivalent (swapped out) frame in the destination process. |
490 IPC_STRUCT_MEMBER(int, source_routing_id) | 494 IPC_STRUCT_MEMBER(int, source_routing_id) |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 | 862 |
859 // Instructs the renderer to save the current page to MHTML. | 863 // Instructs the renderer to save the current page to MHTML. |
860 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 864 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
861 int /* job_id */, | 865 int /* job_id */, |
862 IPC::PlatformFileForTransit /* file handle */) | 866 IPC::PlatformFileForTransit /* file handle */) |
863 | 867 |
864 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 868 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
865 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 869 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
866 GURL /* data */) | 870 GURL /* data */) |
867 | 871 |
| 872 // Change the accessibility mode in the renderer process. |
| 873 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 874 AccessibilityMode) |
| 875 |
868 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 876 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
869 // process to release the magnified image. | 877 // process to release the magnified image. |
870 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 878 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
871 cc::SharedBitmapId /* id */) | 879 cc::SharedBitmapId /* id */) |
872 | 880 |
873 // Notifies the renderer that a snapshot has been retrieved. | 881 // Notifies the renderer that a snapshot has been retrieved. |
874 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 882 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
875 int /* snapshot_id */, | 883 int /* snapshot_id */, |
876 gfx::Size /* size */, | 884 gfx::Size /* size */, |
877 std::vector<unsigned char> /* png */) | 885 std::vector<unsigned char> /* png */) |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 // Since the browser keeps handles to the allocated transport DIBs, this | 1687 // Since the browser keeps handles to the allocated transport DIBs, this |
1680 // message is sent to tell the browser that it may release them when the | 1688 // message is sent to tell the browser that it may release them when the |
1681 // renderer is finished with them. | 1689 // renderer is finished with them. |
1682 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1690 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1683 TransportDIB::Id /* DIB id */) | 1691 TransportDIB::Id /* DIB id */) |
1684 #endif | 1692 #endif |
1685 | 1693 |
1686 // Adding a new message? Stick to the sort order above: first platform | 1694 // Adding a new message? Stick to the sort order above: first platform |
1687 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1695 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1688 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1696 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |