Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: content/common/view_messages.h

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and mac popups compilation Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/DEPS ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 24 matching lines...) Expand all
35 #include "ipc/ipc_channel_handle.h" 35 #include "ipc/ipc_channel_handle.h"
36 #include "ipc/ipc_message_macros.h" 36 #include "ipc/ipc_message_macros.h"
37 #include "ipc/ipc_platform_file.h" 37 #include "ipc/ipc_platform_file.h"
38 #include "media/audio/audio_parameters.h" 38 #include "media/audio/audio_parameters.h"
39 #include "media/base/channel_layout.h" 39 #include "media/base/channel_layout.h"
40 #include "media/base/media_log_event.h" 40 #include "media/base/media_log_event.h"
41 #include "net/base/network_change_notifier.h" 41 #include "net/base/network_change_notifier.h"
42 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 42 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
43 #include "third_party/WebKit/public/platform/WebFloatRect.h" 43 #include "third_party/WebKit/public/platform/WebFloatRect.h"
44 #include "third_party/WebKit/public/platform/WebScreenInfo.h" 44 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
45 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
45 #include "third_party/WebKit/public/web/WebFindOptions.h" 46 #include "third_party/WebKit/public/web/WebFindOptions.h"
46 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" 47 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
47 #include "third_party/WebKit/public/web/WebPluginAction.h" 48 #include "third_party/WebKit/public/web/WebPluginAction.h"
48 #include "third_party/WebKit/public/web/WebPopupType.h" 49 #include "third_party/WebKit/public/web/WebPopupType.h"
49 #include "third_party/WebKit/public/web/WebTextDirection.h" 50 #include "third_party/WebKit/public/web/WebTextDirection.h"
50 #include "third_party/skia/include/core/SkBitmap.h" 51 #include "third_party/skia/include/core/SkBitmap.h"
51 #include "ui/base/ime/text_input_mode.h" 52 #include "ui/base/ime/text_input_mode.h"
52 #include "ui/base/ime/text_input_type.h" 53 #include "ui/base/ime/text_input_type.h"
53 #include "ui/base/ui_base_types.h" 54 #include "ui/base/ui_base_types.h"
54 #include "ui/gfx/geometry/point.h" 55 #include "ui/gfx/geometry/point.h"
(...skipping 11 matching lines...) Expand all
66 67
67 #if defined(ENABLE_PLUGINS) 68 #if defined(ENABLE_PLUGINS)
68 #include "content/common/pepper_renderer_instance_data.h" 69 #include "content/common/pepper_renderer_instance_data.h"
69 #endif 70 #endif
70 71
71 #undef IPC_MESSAGE_EXPORT 72 #undef IPC_MESSAGE_EXPORT
72 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 73 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
73 74
74 #define IPC_MESSAGE_START ViewMsgStart 75 #define IPC_MESSAGE_START ViewMsgStart
75 76
77 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition,
78 blink::WebDeviceEmulationParams::ScreenPositionLast)
76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type, 79 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type,
77 blink::WebMediaPlayerAction::Type::TypeLast) 80 blink::WebMediaPlayerAction::Type::TypeLast)
78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type, 81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type,
79 blink::WebPluginAction::Type::TypeLast) 82 blink::WebPluginAction::Type::TypeLast)
80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType, 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
81 blink::WebPopupType::WebPopupTypeLast) 84 blink::WebPopupType::WebPopupTypeLast)
82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, 85 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
83 blink::WebTextDirection::WebTextDirectionLast) 86 blink::WebTextDirection::WebTextDirectionLast)
84 IPC_ENUM_TRAITS(WindowContainerType) 87 IPC_ENUM_TRAITS(WindowContainerType)
85 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 88 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 IPC_STRUCT_TRAITS_MEMBER(y) 135 IPC_STRUCT_TRAITS_MEMBER(y)
133 IPC_STRUCT_TRAITS_END() 136 IPC_STRUCT_TRAITS_END()
134 137
135 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect) 138 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect)
136 IPC_STRUCT_TRAITS_MEMBER(x) 139 IPC_STRUCT_TRAITS_MEMBER(x)
137 IPC_STRUCT_TRAITS_MEMBER(y) 140 IPC_STRUCT_TRAITS_MEMBER(y)
138 IPC_STRUCT_TRAITS_MEMBER(width) 141 IPC_STRUCT_TRAITS_MEMBER(width)
139 IPC_STRUCT_TRAITS_MEMBER(height) 142 IPC_STRUCT_TRAITS_MEMBER(height)
140 IPC_STRUCT_TRAITS_END() 143 IPC_STRUCT_TRAITS_END()
141 144
145 IPC_STRUCT_TRAITS_BEGIN(blink::WebSize)
146 IPC_STRUCT_TRAITS_MEMBER(width)
147 IPC_STRUCT_TRAITS_MEMBER(height)
148 IPC_STRUCT_TRAITS_END()
149
150 IPC_STRUCT_TRAITS_BEGIN(blink::WebDeviceEmulationParams)
151 IPC_STRUCT_TRAITS_MEMBER(screenPosition)
152 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
153 IPC_STRUCT_TRAITS_MEMBER(viewSize)
154 IPC_STRUCT_TRAITS_MEMBER(fitToView)
155 IPC_STRUCT_TRAITS_MEMBER(offset)
156 IPC_STRUCT_TRAITS_MEMBER(scale)
157 IPC_STRUCT_TRAITS_END()
158
142 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo) 159 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo)
143 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor) 160 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
144 IPC_STRUCT_TRAITS_MEMBER(depth) 161 IPC_STRUCT_TRAITS_MEMBER(depth)
145 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent) 162 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent)
146 IPC_STRUCT_TRAITS_MEMBER(isMonochrome) 163 IPC_STRUCT_TRAITS_MEMBER(isMonochrome)
147 IPC_STRUCT_TRAITS_MEMBER(rect) 164 IPC_STRUCT_TRAITS_MEMBER(rect)
148 IPC_STRUCT_TRAITS_MEMBER(availableRect) 165 IPC_STRUCT_TRAITS_MEMBER(availableRect)
149 IPC_STRUCT_TRAITS_MEMBER(orientationType) 166 IPC_STRUCT_TRAITS_MEMBER(orientationType)
150 IPC_STRUCT_TRAITS_MEMBER(orientationAngle) 167 IPC_STRUCT_TRAITS_MEMBER(orientationAngle)
151 IPC_STRUCT_TRAITS_END() 168 IPC_STRUCT_TRAITS_END()
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 IPC_MESSAGE_ROUTED0(ViewMsg_Close) 629 IPC_MESSAGE_ROUTED0(ViewMsg_Close)
613 630
614 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message 631 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message
615 // is generated in response provided new_size is not empty and not equal to 632 // is generated in response provided new_size is not empty and not equal to
616 // the view's current size. The generated ViewHostMsg_UpdateRect message will 633 // the view's current size. The generated ViewHostMsg_UpdateRect message will
617 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that 634 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
618 // we don't have to fetch it every time WebKit asks for it. 635 // we don't have to fetch it every time WebKit asks for it.
619 IPC_MESSAGE_ROUTED1(ViewMsg_Resize, 636 IPC_MESSAGE_ROUTED1(ViewMsg_Resize,
620 ViewMsg_Resize_Params /* params */) 637 ViewMsg_Resize_Params /* params */)
621 638
639 // Enables device emulation. See WebDeviceEmulationParams for description.
640 IPC_MESSAGE_ROUTED1(ViewMsg_EnableDeviceEmulation,
641 blink::WebDeviceEmulationParams /* params */)
642
643 // Disables device emulation, enabled previously by EnableDeviceEmulation.
644 IPC_MESSAGE_ROUTED0(ViewMsg_DisableDeviceEmulation)
645
622 // Sent to inform the renderer of its screen device color profile. An empty 646 // Sent to inform the renderer of its screen device color profile. An empty
623 // profile tells the renderer use the default sRGB color profile. 647 // profile tells the renderer use the default sRGB color profile.
624 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile, 648 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile,
625 std::vector<char> /* color profile */) 649 std::vector<char> /* color profile */)
626 650
627 // Tells the render view that the resize rect has changed. 651 // Tells the render view that the resize rect has changed.
628 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect, 652 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect,
629 gfx::Rect /* resizer_rect */) 653 gfx::Rect /* resizer_rect */)
630 654
631 // Sent to inform the view that it was hidden. This allows it to reduce its 655 // Sent to inform the view that it was hidden. This allows it to reduce its
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1681 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1658 // for details. 1682 // for details.
1659 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1683 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1660 LOGFONT /* font_data */, 1684 LOGFONT /* font_data */,
1661 base::string16 /* characters */) 1685 base::string16 /* characters */)
1662 #endif 1686 #endif
1663 1687
1664 // Adding a new message? Stick to the sort order above: first platform 1688 // Adding a new message? Stick to the sort order above: first platform
1665 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1689 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1666 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1690 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698