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 15 matching lines...) Expand all Loading... |
26 #include "content/public/common/file_chooser_params.h" | 26 #include "content/public/common/file_chooser_params.h" |
27 #include "content/public/common/frame_navigate_params.h" | 27 #include "content/public/common/frame_navigate_params.h" |
28 #include "content/public/common/javascript_message_type.h" | 28 #include "content/public/common/javascript_message_type.h" |
29 #include "content/public/common/menu_item.h" | 29 #include "content/public/common/menu_item.h" |
30 #include "content/public/common/page_state.h" | 30 #include "content/public/common/page_state.h" |
31 #include "content/public/common/page_zoom.h" | 31 #include "content/public/common/page_zoom.h" |
32 #include "content/public/common/referrer.h" | 32 #include "content/public/common/referrer.h" |
33 #include "content/public/common/renderer_preferences.h" | 33 #include "content/public/common/renderer_preferences.h" |
34 #include "content/public/common/stop_find_action.h" | 34 #include "content/public/common/stop_find_action.h" |
35 #include "content/public/common/three_d_api_types.h" | 35 #include "content/public/common/three_d_api_types.h" |
| 36 #include "content/public/common/touch_action.h" |
36 #include "content/public/common/window_container_type.h" | 37 #include "content/public/common/window_container_type.h" |
37 #include "ipc/ipc_channel_handle.h" | 38 #include "ipc/ipc_channel_handle.h" |
38 #include "ipc/ipc_message_macros.h" | 39 #include "ipc/ipc_message_macros.h" |
39 #include "ipc/ipc_platform_file.h" | 40 #include "ipc/ipc_platform_file.h" |
40 #include "media/audio/audio_parameters.h" | 41 #include "media/audio/audio_parameters.h" |
41 #include "media/base/channel_layout.h" | 42 #include "media/base/channel_layout.h" |
42 #include "media/base/media_log_event.h" | 43 #include "media/base/media_log_event.h" |
43 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 44 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
44 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 45 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
45 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 46 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 84 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
84 IPC_ENUM_TRAITS(content::MenuItem::Type) | 85 IPC_ENUM_TRAITS(content::MenuItem::Type) |
85 IPC_ENUM_TRAITS(content::NavigationGesture) | 86 IPC_ENUM_TRAITS(content::NavigationGesture) |
86 IPC_ENUM_TRAITS(content::PageZoom) | 87 IPC_ENUM_TRAITS(content::PageZoom) |
87 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) | 88 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) |
88 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) | 89 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) |
89 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, | 90 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, |
90 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) | 91 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) |
91 IPC_ENUM_TRAITS(content::StopFindAction) | 92 IPC_ENUM_TRAITS(content::StopFindAction) |
92 IPC_ENUM_TRAITS(content::ThreeDAPIType) | 93 IPC_ENUM_TRAITS(content::ThreeDAPIType) |
| 94 IPC_ENUM_TRAITS(content::TouchAction) |
93 IPC_ENUM_TRAITS(media::ChannelLayout) | 95 IPC_ENUM_TRAITS(media::ChannelLayout) |
94 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) | 96 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) |
95 IPC_ENUM_TRAITS(ui::MenuSourceType) | 97 IPC_ENUM_TRAITS(ui::MenuSourceType) |
96 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) | 98 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) |
97 IPC_ENUM_TRAITS(ui::TextInputType) | 99 IPC_ENUM_TRAITS(ui::TextInputType) |
98 | 100 |
99 #if defined(OS_MACOSX) | 101 #if defined(OS_MACOSX) |
100 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) | 102 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) |
101 IPC_STRUCT_TRAITS_MEMBER(font_name) | 103 IPC_STRUCT_TRAITS_MEMBER(font_name) |
102 IPC_STRUCT_TRAITS_MEMBER(font_point_size) | 104 IPC_STRUCT_TRAITS_MEMBER(font_point_size) |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 bool /* has_vertical_scrollbar */) | 1863 bool /* has_vertical_scrollbar */) |
1862 | 1864 |
1863 // Notifies that the number of JavaScript scroll handlers changed. | 1865 // Notifies that the number of JavaScript scroll handlers changed. |
1864 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents, | 1866 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents, |
1865 int /* count */) | 1867 int /* count */) |
1866 | 1868 |
1867 // Notifies whether there are JavaScript touch event handlers or not. | 1869 // Notifies whether there are JavaScript touch event handlers or not. |
1868 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1870 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
1869 bool /* has_handlers */) | 1871 bool /* has_handlers */) |
1870 | 1872 |
| 1873 // Notifies the allowed touch actions for a new touch point. |
| 1874 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchAction, |
| 1875 int /* touch_id */, |
| 1876 content::TouchAction /* touch_actions */) |
| 1877 |
1871 // A message from HTML-based UI. When (trusted) Javascript calls | 1878 // A message from HTML-based UI. When (trusted) Javascript calls |
1872 // send(message, args), this message is sent to the browser. | 1879 // send(message, args), this message is sent to the browser. |
1873 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1880 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
1874 GURL /* source_url */, | 1881 GURL /* source_url */, |
1875 std::string /* message */, | 1882 std::string /* message */, |
1876 base::ListValue /* args */) | 1883 base::ListValue /* args */) |
1877 | 1884 |
1878 // A renderer sends this to the browser process when it wants to create a ppapi | 1885 // A renderer sends this to the browser process when it wants to create a ppapi |
1879 // plugin. The browser will create the plugin process if necessary, and will | 1886 // plugin. The browser will create the plugin process if necessary, and will |
1880 // return a handle to the channel on success. | 1887 // return a handle to the channel on success. |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2367 // synchronously (see crbug.com/120597). This IPC message sends the character | 2374 // synchronously (see crbug.com/120597). This IPC message sends the character |
2368 // bounds after every composition change to always have correct bound info. | 2375 // bounds after every composition change to always have correct bound info. |
2369 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2376 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2370 gfx::Range /* composition range */, | 2377 gfx::Range /* composition range */, |
2371 std::vector<gfx::Rect> /* character bounds */) | 2378 std::vector<gfx::Rect> /* character bounds */) |
2372 #endif | 2379 #endif |
2373 | 2380 |
2374 // Adding a new message? Stick to the sort order above: first platform | 2381 // Adding a new message? Stick to the sort order above: first platform |
2375 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2382 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2376 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2383 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |