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

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

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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/resize_params.h ('k') | content/public/browser/render_widget_host.h » ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "content/common/resize_params.h" 24 #include "content/common/resize_params.h"
25 #include "content/common/text_input_state.h" 25 #include "content/common/text_input_state.h"
26 #include "content/common/view_message_enums.h" 26 #include "content/common/view_message_enums.h"
27 #include "content/public/common/common_param_traits.h" 27 #include "content/public/common/common_param_traits.h"
28 #include "content/public/common/favicon_url.h" 28 #include "content/public/common/favicon_url.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/screen_info.h"
34 #include "content/public/common/three_d_api_types.h" 35 #include "content/public/common/three_d_api_types.h"
35 #include "content/public/common/window_container_type.h" 36 #include "content/public/common/window_container_type.h"
36 #include "ipc/ipc_channel_handle.h" 37 #include "ipc/ipc_channel_handle.h"
37 #include "ipc/ipc_message_macros.h" 38 #include "ipc/ipc_message_macros.h"
38 #include "media/base/audio_parameters.h" 39 #include "media/base/audio_parameters.h"
39 #include "media/base/channel_layout.h" 40 #include "media/base/channel_layout.h"
40 #include "media/base/ipc/media_param_traits.h" 41 #include "media/base/ipc/media_param_traits.h"
41 #include "media/base/media_log_event.h" 42 #include "media/base/media_log_event.h"
42 #include "net/base/network_change_notifier.h" 43 #include "net/base/network_change_notifier.h"
43 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 44 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
44 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 45 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
45 #include "third_party/WebKit/public/platform/WebFloatRect.h" 46 #include "third_party/WebKit/public/platform/WebFloatRect.h"
46 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
47 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 47 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
48 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" 48 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
49 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" 49 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
50 #include "third_party/WebKit/public/web/WebPluginAction.h" 50 #include "third_party/WebKit/public/web/WebPluginAction.h"
51 #include "third_party/WebKit/public/web/WebPopupType.h" 51 #include "third_party/WebKit/public/web/WebPopupType.h"
52 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" 52 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h"
53 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" 53 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h"
54 #include "third_party/WebKit/public/web/WebTextDirection.h" 54 #include "third_party/WebKit/public/web/WebTextDirection.h"
55 #include "ui/base/ime/text_input_mode.h" 55 #include "ui/base/ime/text_input_mode.h"
56 #include "ui/base/ime/text_input_type.h" 56 #include "ui/base/ime/text_input_type.h"
(...skipping 23 matching lines...) Expand all
80 blink::WebDeviceEmulationParams::ScreenPositionLast) 80 blink::WebDeviceEmulationParams::ScreenPositionLast)
81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type, 81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type,
82 blink::WebMediaPlayerAction::Type::TypeLast) 82 blink::WebMediaPlayerAction::Type::TypeLast)
83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type, 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type,
84 blink::WebPluginAction::Type::TypeLast) 84 blink::WebPluginAction::Type::TypeLast)
85 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType, 85 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
86 blink::WebPopupType::WebPopupTypeLast) 86 blink::WebPopupType::WebPopupTypeLast)
87 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member. 87 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member.
88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, 88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType,
89 blink::WebScreenOrientationUndefined, 89 blink::WebScreenOrientationUndefined,
90 blink::WebScreenOrientationLandscapeSecondary) 90 blink::WebScreenOrientationLandscapeSecondary)
dcheng 2016/09/07 19:52:29 Is it possible to remove this now?
ccameron 2016/09/07 20:21:30 It's still in use by blink::WebDeviceEmulationPara
91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError, 91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebWorkerCreationError,
92 blink::WebWorkerCreationErrorLast) 92 blink::WebWorkerCreationErrorLast)
93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, 93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
94 blink::WebTextDirection::WebTextDirectionLast) 94 blink::WebTextDirection::WebTextDirectionLast)
95 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, 95 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode,
96 blink::WebDisplayMode::WebDisplayModeLast) 96 blink::WebDisplayMode::WebDisplayModeLast)
97 IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType, WINDOW_CONTAINER_TYPE_MAX_VALUE) 97 IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType, WINDOW_CONTAINER_TYPE_MAX_VALUE)
98 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 98 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
99 IPC_ENUM_TRAITS(content::MenuItem::Type) 99 IPC_ENUM_TRAITS(content::MenuItem::Type)
100 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, 100 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture,
101 content::NavigationGestureLast) 101 content::NavigationGestureLast)
102 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, 102 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom,
103 content::PageZoom::PAGE_ZOOM_OUT, 103 content::PageZoom::PAGE_ZOOM_OUT,
104 content::PageZoom::PAGE_ZOOM_IN) 104 content::PageZoom::PAGE_ZOOM_IN)
105 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, 105 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting,
106 gfx::FontRenderParams::HINTING_MAX) 106 gfx::FontRenderParams::HINTING_MAX)
107 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, 107 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering,
108 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX) 108 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX)
109 IPC_ENUM_TRAITS_MAX_VALUE(content::ScreenOrientationValues,
110 content::SCREEN_ORIENTATION_VALUES_LAST)
109 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, 111 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
110 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) 112 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
111 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType, 113 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType,
112 content::THREE_D_API_TYPE_LAST) 114 content::THREE_D_API_TYPE_LAST)
113 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type, 115 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type,
114 media::MediaLogEvent::TYPE_LAST) 116 media::MediaLogEvent::TYPE_LAST)
115 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) 117 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
116 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX) 118 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX)
117 119
118 #if defined(OS_MACOSX) 120 #if defined(OS_MACOSX)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 IPC_STRUCT_TRAITS_MEMBER(viewPosition) 158 IPC_STRUCT_TRAITS_MEMBER(viewPosition)
157 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor) 159 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
158 IPC_STRUCT_TRAITS_MEMBER(viewSize) 160 IPC_STRUCT_TRAITS_MEMBER(viewSize)
159 IPC_STRUCT_TRAITS_MEMBER(fitToView) 161 IPC_STRUCT_TRAITS_MEMBER(fitToView)
160 IPC_STRUCT_TRAITS_MEMBER(offset) 162 IPC_STRUCT_TRAITS_MEMBER(offset)
161 IPC_STRUCT_TRAITS_MEMBER(scale) 163 IPC_STRUCT_TRAITS_MEMBER(scale)
162 IPC_STRUCT_TRAITS_MEMBER(screenOrientationAngle) 164 IPC_STRUCT_TRAITS_MEMBER(screenOrientationAngle)
163 IPC_STRUCT_TRAITS_MEMBER(screenOrientationType) 165 IPC_STRUCT_TRAITS_MEMBER(screenOrientationType)
164 IPC_STRUCT_TRAITS_END() 166 IPC_STRUCT_TRAITS_END()
165 167
166 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo) 168 IPC_STRUCT_TRAITS_BEGIN(content::ScreenInfo)
167 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor) 169 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor)
168 IPC_STRUCT_TRAITS_MEMBER(depth) 170 IPC_STRUCT_TRAITS_MEMBER(depth)
169 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent) 171 IPC_STRUCT_TRAITS_MEMBER(depth_per_component)
170 IPC_STRUCT_TRAITS_MEMBER(isMonochrome) 172 IPC_STRUCT_TRAITS_MEMBER(is_monochrome)
171 IPC_STRUCT_TRAITS_MEMBER(rect) 173 IPC_STRUCT_TRAITS_MEMBER(rect)
172 IPC_STRUCT_TRAITS_MEMBER(availableRect) 174 IPC_STRUCT_TRAITS_MEMBER(available_rect)
173 IPC_STRUCT_TRAITS_MEMBER(orientationType) 175 IPC_STRUCT_TRAITS_MEMBER(orientation_type)
174 IPC_STRUCT_TRAITS_MEMBER(orientationAngle) 176 IPC_STRUCT_TRAITS_MEMBER(orientation_angle)
175 IPC_STRUCT_TRAITS_END() 177 IPC_STRUCT_TRAITS_END()
176 178
177 IPC_STRUCT_TRAITS_BEGIN(content::ResizeParams) 179 IPC_STRUCT_TRAITS_BEGIN(content::ResizeParams)
178 IPC_STRUCT_TRAITS_MEMBER(screen_info) 180 IPC_STRUCT_TRAITS_MEMBER(screen_info)
179 IPC_STRUCT_TRAITS_MEMBER(new_size) 181 IPC_STRUCT_TRAITS_MEMBER(new_size)
180 IPC_STRUCT_TRAITS_MEMBER(physical_backing_size) 182 IPC_STRUCT_TRAITS_MEMBER(physical_backing_size)
181 IPC_STRUCT_TRAITS_MEMBER(top_controls_shrink_blink_size) 183 IPC_STRUCT_TRAITS_MEMBER(top_controls_shrink_blink_size)
182 IPC_STRUCT_TRAITS_MEMBER(top_controls_height) 184 IPC_STRUCT_TRAITS_MEMBER(top_controls_height)
183 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_height) 185 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_height)
184 IPC_STRUCT_TRAITS_MEMBER(visible_viewport_size) 186 IPC_STRUCT_TRAITS_MEMBER(visible_viewport_size)
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 int /* y */) 1168 int /* y */)
1167 1169
1168 #elif defined(OS_MACOSX) 1170 #elif defined(OS_MACOSX)
1169 // Receives content of a web page as plain text. 1171 // Receives content of a web page as plain text.
1170 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 1172 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
1171 #endif 1173 #endif
1172 1174
1173 // Adding a new message? Stick to the sort order above: first platform 1175 // Adding a new message? Stick to the sort order above: first platform
1174 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1176 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1175 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1177 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/resize_params.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698