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" |
11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
13 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
16 #include "content/common/cookie_data.h" | 16 #include "content/common/cookie_data.h" |
17 #include "content/common/navigation_gesture.h" | 17 #include "content/common/navigation_gesture.h" |
18 #include "content/common/pepper_renderer_instance_data.h" | 18 #include "content/common/pepper_renderer_instance_data.h" |
19 #include "content/common/view_message_enums.h" | 19 #include "content/common/view_message_enums.h" |
20 #include "content/common/webplugin_geometry.h" | 20 #include "content/common/webplugin_geometry.h" |
21 #include "content/port/common/input_event_ack_state.h" | 21 #include "content/port/common/input_event_ack_state.h" |
22 #include "content/public/common/color_suggestion.h" | 22 #include "content/public/common/color_suggestion.h" |
23 #include "content/public/common/common_param_traits.h" | 23 #include "content/public/common/common_param_traits.h" |
24 #include "content/public/common/favicon_url.h" | 24 #include "content/public/common/favicon_url.h" |
25 #include "content/public/common/file_chooser_params.h" | 25 #include "content/public/common/file_chooser_params.h" |
26 #include "content/public/common/javascript_message_type.h" | |
27 #include "content/public/common/menu_item.h" | 26 #include "content/public/common/menu_item.h" |
28 #include "content/public/common/page_state.h" | 27 #include "content/public/common/page_state.h" |
29 #include "content/public/common/page_zoom.h" | 28 #include "content/public/common/page_zoom.h" |
30 #include "content/public/common/referrer.h" | 29 #include "content/public/common/referrer.h" |
31 #include "content/public/common/renderer_preferences.h" | 30 #include "content/public/common/renderer_preferences.h" |
32 #include "content/public/common/stop_find_action.h" | 31 #include "content/public/common/stop_find_action.h" |
33 #include "content/public/common/three_d_api_types.h" | 32 #include "content/public/common/three_d_api_types.h" |
34 #include "content/public/common/window_container_type.h" | 33 #include "content/public/common/window_container_type.h" |
35 #include "content/common/date_time_suggestion.h" | 34 #include "content/common/date_time_suggestion.h" |
36 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #define IPC_MESSAGE_START ViewMsgStart | 69 #define IPC_MESSAGE_START ViewMsgStart |
71 | 70 |
72 IPC_ENUM_TRAITS(AccessibilityMode) | 71 IPC_ENUM_TRAITS(AccessibilityMode) |
73 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 72 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
74 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 73 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
75 IPC_ENUM_TRAITS(blink::WebPopupType) | 74 IPC_ENUM_TRAITS(blink::WebPopupType) |
76 IPC_ENUM_TRAITS(blink::WebTextDirection) | 75 IPC_ENUM_TRAITS(blink::WebTextDirection) |
77 IPC_ENUM_TRAITS(WindowContainerType) | 76 IPC_ENUM_TRAITS(WindowContainerType) |
78 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 77 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
79 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 78 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
80 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | |
81 IPC_ENUM_TRAITS(content::MenuItem::Type) | 79 IPC_ENUM_TRAITS(content::MenuItem::Type) |
82 IPC_ENUM_TRAITS(content::NavigationGesture) | 80 IPC_ENUM_TRAITS(content::NavigationGesture) |
83 IPC_ENUM_TRAITS(content::PageZoom) | 81 IPC_ENUM_TRAITS(content::PageZoom) |
84 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) | 82 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) |
85 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) | 83 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) |
86 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, | 84 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, |
87 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) | 85 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) |
88 IPC_ENUM_TRAITS(content::StopFindAction) | 86 IPC_ENUM_TRAITS(content::StopFindAction) |
89 IPC_ENUM_TRAITS(content::ThreeDAPIType) | 87 IPC_ENUM_TRAITS(content::ThreeDAPIType) |
90 IPC_ENUM_TRAITS(media::ChannelLayout) | 88 IPC_ENUM_TRAITS(media::ChannelLayout) |
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 | 1352 |
1355 // Sent from an inactive renderer for the browser to route to the active | 1353 // Sent from an inactive renderer for the browser to route to the active |
1356 // renderer, instructing it to close. | 1354 // renderer, instructing it to close. |
1357 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1355 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) |
1358 | 1356 |
1359 // Sent to the browser from an inactive renderer to post a message to the | 1357 // Sent to the browser from an inactive renderer to post a message to the |
1360 // active renderer. | 1358 // active renderer. |
1361 IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent, | 1359 IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent, |
1362 ViewMsg_PostMessage_Params) | 1360 ViewMsg_PostMessage_Params) |
1363 | 1361 |
1364 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, | |
1365 base::string16 /* in - alert message */, | |
1366 base::string16 /* in - default prompt */, | |
1367 GURL /* in - originating page URL */, | |
1368 content::JavaScriptMessageType /* in - type */, | |
1369 bool /* out - success */, | |
1370 base::string16 /* out - user_input field */) | |
1371 | |
1372 // Notifies that the preferred size of the content changed. | 1362 // Notifies that the preferred size of the content changed. |
1373 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1363 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
1374 gfx::Size /* pref_size */) | 1364 gfx::Size /* pref_size */) |
1375 | 1365 |
1376 // Notifies that the scroll offset changed. | 1366 // Notifies that the scroll offset changed. |
1377 // This is different from ViewHostMsg_UpdateRect in that ViewHostMsg_UpdateRect | 1367 // This is different from ViewHostMsg_UpdateRect in that ViewHostMsg_UpdateRect |
1378 // is not sent at all when threaded compositing is enabled while | 1368 // is not sent at all when threaded compositing is enabled while |
1379 // ViewHostMsg_DidChangeScrollOffset works properly in this case. | 1369 // ViewHostMsg_DidChangeScrollOffset works properly in this case. |
1380 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidChangeScrollOffset) | 1370 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidChangeScrollOffset) |
1381 | 1371 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 ui::TextInputMode /* TextInputMode of the focused node */, | 1549 ui::TextInputMode /* TextInputMode of the focused node */, |
1560 bool /* can_compose_inline in the focused node */) | 1550 bool /* can_compose_inline in the focused node */) |
1561 | 1551 |
1562 // Required for updating text input state. | 1552 // Required for updating text input state. |
1563 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 1553 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
1564 ViewHostMsg_TextInputState_Params /* input state params */) | 1554 ViewHostMsg_TextInputState_Params /* input state params */) |
1565 | 1555 |
1566 // Required for cancelling an ongoing input method composition. | 1556 // Required for cancelling an ongoing input method composition. |
1567 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1557 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
1568 | 1558 |
1569 // Displays a box to confirm that the user wants to navigate away from the | |
1570 // page. Replies true if yes, false otherwise, the reply string is ignored, | |
1571 // but is included so that we can use OnJavaScriptMessageBoxClosed. | |
1572 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm, | |
1573 GURL, /* in - originating frame URL */ | |
1574 base::string16 /* in - alert message */, | |
1575 bool /* in - is a reload */, | |
1576 bool /* out - success */, | |
1577 base::string16 /* out - This is ignored.*/) | |
1578 | |
1579 // Sent when the renderer changes the zoom level for a particular url, so the | 1559 // Sent when the renderer changes the zoom level for a particular url, so the |
1580 // browser can update its records. If remember is true, then url is used to | 1560 // browser can update its records. If remember is true, then url is used to |
1581 // update the zoom level for all pages in that site. Otherwise, the render | 1561 // update the zoom level for all pages in that site. Otherwise, the render |
1582 // view's id is used so that only the menu is updated. | 1562 // view's id is used so that only the menu is updated. |
1583 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1563 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, |
1584 double /* zoom_level */, | 1564 double /* zoom_level */, |
1585 bool /* remember */, | 1565 bool /* remember */, |
1586 GURL /* url */) | 1566 GURL /* url */) |
1587 | 1567 |
1588 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1568 // Updates the minimum/maximum allowed zoom percent for this tab from the |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 // synchronously (see crbug.com/120597). This IPC message sends the character | 1872 // synchronously (see crbug.com/120597). This IPC message sends the character |
1893 // bounds after every composition change to always have correct bound info. | 1873 // bounds after every composition change to always have correct bound info. |
1894 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1874 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1895 gfx::Range /* composition range */, | 1875 gfx::Range /* composition range */, |
1896 std::vector<gfx::Rect> /* character bounds */) | 1876 std::vector<gfx::Rect> /* character bounds */) |
1897 #endif | 1877 #endif |
1898 | 1878 |
1899 // Adding a new message? Stick to the sort order above: first platform | 1879 // Adding a new message? Stick to the sort order above: first platform |
1900 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1880 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1901 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1881 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |