Chromium Code Reviews| 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/web/WebCompositionUnderline.h" | 46 #include "third_party/WebKit/public/web/WebCompositionUnderline.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 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1852 bool /* has_vertical_scrollbar */) | 1854 bool /* has_vertical_scrollbar */) |
| 1853 | 1855 |
| 1854 // Notifies that the number of JavaScript scroll handlers changed. | 1856 // Notifies that the number of JavaScript scroll handlers changed. |
| 1855 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents, | 1857 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents, |
| 1856 int /* count */) | 1858 int /* count */) |
| 1857 | 1859 |
| 1858 // Notifies whether there are JavaScript touch event handlers or not. | 1860 // Notifies whether there are JavaScript touch event handlers or not. |
| 1859 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1861 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
| 1860 bool /* has_handlers */) | 1862 bool /* has_handlers */) |
| 1861 | 1863 |
| 1864 // Notifies the allowed touch actions for a new touch point. | |
| 1865 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchAction, | |
|
jdduke (slow)
2013/11/18 15:56:00
Could we make this an InputHostMsg and put in cont
Rick Byers
2013/11/19 22:14:59
Done. I saw this as similar to ViewHostMsg_HasTou
jdduke (slow)
2013/11/20 00:35:23
Ah, you're right of course. I've been meaning to
| |
| 1866 int /* touch_id */, | |
| 1867 content::TouchAction /* touch_actions */) | |
| 1868 | |
| 1862 // A message from HTML-based UI. When (trusted) Javascript calls | 1869 // A message from HTML-based UI. When (trusted) Javascript calls |
| 1863 // send(message, args), this message is sent to the browser. | 1870 // send(message, args), this message is sent to the browser. |
| 1864 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1871 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
| 1865 GURL /* source_url */, | 1872 GURL /* source_url */, |
| 1866 std::string /* message */, | 1873 std::string /* message */, |
| 1867 base::ListValue /* args */) | 1874 base::ListValue /* args */) |
| 1868 | 1875 |
| 1869 // A renderer sends this to the browser process when it wants to create a ppapi | 1876 // A renderer sends this to the browser process when it wants to create a ppapi |
| 1870 // plugin. The browser will create the plugin process if necessary, and will | 1877 // plugin. The browser will create the plugin process if necessary, and will |
| 1871 // return a handle to the channel on success. | 1878 // return a handle to the channel on success. |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2365 // synchronously (see crbug.com/120597). This IPC message sends the character | 2372 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2366 // bounds after every composition change to always have correct bound info. | 2373 // bounds after every composition change to always have correct bound info. |
| 2367 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2374 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2368 gfx::Range /* composition range */, | 2375 gfx::Range /* composition range */, |
| 2369 std::vector<gfx::Rect> /* character bounds */) | 2376 std::vector<gfx::Rect> /* character bounds */) |
| 2370 #endif | 2377 #endif |
| 2371 | 2378 |
| 2372 // Adding a new message? Stick to the sort order above: first platform | 2379 // Adding a new message? Stick to the sort order above: first platform |
| 2373 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2380 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2374 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2381 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |