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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // Whether the window associated with this view was created with an opener. | 470 // Whether the window associated with this view was created with an opener. |
472 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) | 471 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) |
473 | 472 |
474 // The initial page ID to use for this view, which must be larger than any | 473 // 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 | 474 // 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. | 475 // to a view and are only updated by the renderer after this initial value. |
477 IPC_STRUCT_MEMBER(int32, next_page_id) | 476 IPC_STRUCT_MEMBER(int32, next_page_id) |
478 | 477 |
479 // The properties of the screen associated with the view. | 478 // The properties of the screen associated with the view. |
480 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 479 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
481 | |
482 // The accessibility mode of the renderer. | |
483 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | |
484 IPC_STRUCT_END() | 480 IPC_STRUCT_END() |
485 | 481 |
486 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 482 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
487 // The serialized script value. | 483 // The serialized script value. |
488 IPC_STRUCT_MEMBER(base::string16, data) | 484 IPC_STRUCT_MEMBER(base::string16, data) |
489 | 485 |
490 // When sent to the browser, this is the routing ID of the source frame in | 486 // When sent to the browser, this is the routing ID of the source frame in |
491 // the source process. The browser replaces it with the routing ID of the | 487 // the source process. The browser replaces it with the routing ID of the |
492 // equivalent (swapped out) frame in the destination process. | 488 // equivalent (swapped out) frame in the destination process. |
493 IPC_STRUCT_MEMBER(int, source_routing_id) | 489 IPC_STRUCT_MEMBER(int, source_routing_id) |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 | 872 |
877 // Instructs the renderer to save the current page to MHTML. | 873 // Instructs the renderer to save the current page to MHTML. |
878 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 874 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
879 int /* job_id */, | 875 int /* job_id */, |
880 IPC::PlatformFileForTransit /* file handle */) | 876 IPC::PlatformFileForTransit /* file handle */) |
881 | 877 |
882 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 878 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
883 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 879 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
884 GURL /* data */) | 880 GURL /* data */) |
885 | 881 |
886 // Change the accessibility mode in the renderer process. | |
887 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | |
888 AccessibilityMode) | |
889 | |
890 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 882 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
891 // process to release the magnified image. | 883 // process to release the magnified image. |
892 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 884 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
893 cc::SharedBitmapId /* id */) | 885 cc::SharedBitmapId /* id */) |
894 | 886 |
895 // Notifies the renderer that a snapshot has been retrieved. | 887 // Notifies the renderer that a snapshot has been retrieved. |
896 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 888 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
897 int /* snapshot_id */, | 889 int /* snapshot_id */, |
898 gfx::Size /* size */, | 890 gfx::Size /* size */, |
899 std::vector<unsigned char> /* png */) | 891 std::vector<unsigned char> /* png */) |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 // synchronously (see crbug.com/120597). This IPC message sends the character | 1769 // synchronously (see crbug.com/120597). This IPC message sends the character |
1778 // bounds after every composition change to always have correct bound info. | 1770 // bounds after every composition change to always have correct bound info. |
1779 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1771 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1780 gfx::Range /* composition range */, | 1772 gfx::Range /* composition range */, |
1781 std::vector<gfx::Rect> /* character bounds */) | 1773 std::vector<gfx::Rect> /* character bounds */) |
1782 #endif | 1774 #endif |
1783 | 1775 |
1784 // Adding a new message? Stick to the sort order above: first platform | 1776 // Adding a new message? Stick to the sort order above: first platform |
1785 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1777 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1786 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1778 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |