| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #if defined(OS_MACOSX) | 59 #if defined(OS_MACOSX) |
| 60 #include "content/common/mac/font_descriptor.h" | 60 #include "content/common/mac/font_descriptor.h" |
| 61 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 61 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 #undef IPC_MESSAGE_EXPORT | 64 #undef IPC_MESSAGE_EXPORT |
| 65 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 65 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 66 | 66 |
| 67 #define IPC_MESSAGE_START ViewMsgStart | 67 #define IPC_MESSAGE_START ViewMsgStart |
| 68 | 68 |
| 69 IPC_ENUM_TRAITS(AccessibilityMode) | |
| 70 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 69 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
| 71 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 70 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
| 72 IPC_ENUM_TRAITS(blink::WebPopupType) | 71 IPC_ENUM_TRAITS(blink::WebPopupType) |
| 73 IPC_ENUM_TRAITS(blink::WebTextDirection) | 72 IPC_ENUM_TRAITS(blink::WebTextDirection) |
| 74 IPC_ENUM_TRAITS(WindowContainerType) | 73 IPC_ENUM_TRAITS(WindowContainerType) |
| 75 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 74 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
| 76 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 75 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
| 77 IPC_ENUM_TRAITS(content::MenuItem::Type) | 76 IPC_ENUM_TRAITS(content::MenuItem::Type) |
| 78 IPC_ENUM_TRAITS(content::NavigationGesture) | 77 IPC_ENUM_TRAITS(content::NavigationGesture) |
| 79 IPC_ENUM_TRAITS(content::PageZoom) | 78 IPC_ENUM_TRAITS(content::PageZoom) |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 // Whether the window associated with this view was created with an opener. | 466 // Whether the window associated with this view was created with an opener. |
| 468 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) | 467 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) |
| 469 | 468 |
| 470 // The initial page ID to use for this view, which must be larger than any | 469 // The initial page ID to use for this view, which must be larger than any |
| 471 // existing navigation that might be loaded in the view. Page IDs are unique | 470 // existing navigation that might be loaded in the view. Page IDs are unique |
| 472 // to a view and are only updated by the renderer after this initial value. | 471 // to a view and are only updated by the renderer after this initial value. |
| 473 IPC_STRUCT_MEMBER(int32, next_page_id) | 472 IPC_STRUCT_MEMBER(int32, next_page_id) |
| 474 | 473 |
| 475 // The properties of the screen associated with the view. | 474 // The properties of the screen associated with the view. |
| 476 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 475 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
| 477 | |
| 478 // The accessibility mode of the renderer. | |
| 479 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | |
| 480 IPC_STRUCT_END() | 476 IPC_STRUCT_END() |
| 481 | 477 |
| 482 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 478 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 483 // The serialized script value. | 479 // The serialized script value. |
| 484 IPC_STRUCT_MEMBER(base::string16, data) | 480 IPC_STRUCT_MEMBER(base::string16, data) |
| 485 | 481 |
| 486 // When sent to the browser, this is the routing ID of the source frame in | 482 // When sent to the browser, this is the routing ID of the source frame in |
| 487 // the source process. The browser replaces it with the routing ID of the | 483 // the source process. The browser replaces it with the routing ID of the |
| 488 // equivalent (swapped out) frame in the destination process. | 484 // equivalent (swapped out) frame in the destination process. |
| 489 IPC_STRUCT_MEMBER(int, source_routing_id) | 485 IPC_STRUCT_MEMBER(int, source_routing_id) |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 | 864 |
| 869 // Instructs the renderer to save the current page to MHTML. | 865 // Instructs the renderer to save the current page to MHTML. |
| 870 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 866 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
| 871 int /* job_id */, | 867 int /* job_id */, |
| 872 IPC::PlatformFileForTransit /* file handle */) | 868 IPC::PlatformFileForTransit /* file handle */) |
| 873 | 869 |
| 874 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 870 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
| 875 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 871 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 876 GURL /* data */) | 872 GURL /* data */) |
| 877 | 873 |
| 878 // Change the accessibility mode in the renderer process. | |
| 879 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | |
| 880 AccessibilityMode) | |
| 881 | |
| 882 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 874 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
| 883 // process to release the magnified image. | 875 // process to release the magnified image. |
| 884 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 876 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
| 885 cc::SharedBitmapId /* id */) | 877 cc::SharedBitmapId /* id */) |
| 886 | 878 |
| 887 // Notifies the renderer that a snapshot has been retrieved. | 879 // Notifies the renderer that a snapshot has been retrieved. |
| 888 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 880 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 889 int /* snapshot_id */, | 881 int /* snapshot_id */, |
| 890 gfx::Size /* size */, | 882 gfx::Size /* size */, |
| 891 std::vector<unsigned char> /* png */) | 883 std::vector<unsigned char> /* png */) |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1733 // synchronously (see crbug.com/120597). This IPC message sends the character | 1725 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1734 // bounds after every composition change to always have correct bound info. | 1726 // bounds after every composition change to always have correct bound info. |
| 1735 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1727 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1736 gfx::Range /* composition range */, | 1728 gfx::Range /* composition range */, |
| 1737 std::vector<gfx::Rect> /* character bounds */) | 1729 std::vector<gfx::Rect> /* character bounds */) |
| 1738 #endif | 1730 #endif |
| 1739 | 1731 |
| 1740 // Adding a new message? Stick to the sort order above: first platform | 1732 // Adding a new message? Stick to the sort order above: first platform |
| 1741 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1733 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1742 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1734 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |