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