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 // Whether the data format is supplied as serialized script value, or as | 488 // Whether the data format is supplied as serialized script value, or as |
485 // a simple string. If it is a raw string, must be converted from string to a | 489 // a simple string. If it is a raw string, must be converted from string to a |
486 // WebSerializedScriptValue in renderer. | 490 // WebSerializedScriptValue in renderer. |
487 IPC_STRUCT_MEMBER(bool, is_data_raw_string) | 491 IPC_STRUCT_MEMBER(bool, is_data_raw_string) |
488 // The serialized script value. | 492 // The serialized script value. |
489 IPC_STRUCT_MEMBER(base::string16, data) | 493 IPC_STRUCT_MEMBER(base::string16, data) |
490 // When sent to the browser, this is the routing ID of the source frame in | 494 // When sent to the browser, this is the routing ID of the source frame in |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 865 |
862 // Instructs the renderer to save the current page to MHTML. | 866 // Instructs the renderer to save the current page to MHTML. |
863 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 867 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
864 int /* job_id */, | 868 int /* job_id */, |
865 IPC::PlatformFileForTransit /* file handle */) | 869 IPC::PlatformFileForTransit /* file handle */) |
866 | 870 |
867 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 871 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
868 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 872 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
869 GURL /* data */) | 873 GURL /* data */) |
870 | 874 |
| 875 // Change the accessibility mode in the renderer process. |
| 876 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 877 AccessibilityMode) |
| 878 |
871 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 879 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
872 // process to release the magnified image. | 880 // process to release the magnified image. |
873 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 881 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
874 cc::SharedBitmapId /* id */) | 882 cc::SharedBitmapId /* id */) |
875 | 883 |
876 // Notifies the renderer that a snapshot has been retrieved. | 884 // Notifies the renderer that a snapshot has been retrieved. |
877 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 885 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
878 int /* snapshot_id */, | 886 int /* snapshot_id */, |
879 gfx::Size /* size */, | 887 gfx::Size /* size */, |
880 std::vector<unsigned char> /* png */) | 888 std::vector<unsigned char> /* png */) |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 // Since the browser keeps handles to the allocated transport DIBs, this | 1690 // Since the browser keeps handles to the allocated transport DIBs, this |
1683 // message is sent to tell the browser that it may release them when the | 1691 // message is sent to tell the browser that it may release them when the |
1684 // renderer is finished with them. | 1692 // renderer is finished with them. |
1685 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1693 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1686 TransportDIB::Id /* DIB id */) | 1694 TransportDIB::Id /* DIB id */) |
1687 #endif | 1695 #endif |
1688 | 1696 |
1689 // Adding a new message? Stick to the sort order above: first platform | 1697 // Adding a new message? Stick to the sort order above: first platform |
1690 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1698 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1691 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1699 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |