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