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

Side by Side Diff: content/public/common/common_param_traits_macros.h

Issue 2846623003: Make autoplay policies no longer platform dependant. (Closed)
Patch Set: Created 3 years, 7 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
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 // Singly or Multiply-included shared traits file depending on circumstances. 5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 ui::POINTER_TYPE_LAST) 68 ui::POINTER_TYPE_LAST)
69 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::HoverType, 69 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::HoverType,
70 ui::HOVER_TYPE_FIRST, 70 ui::HOVER_TYPE_FIRST,
71 ui::HOVER_TYPE_LAST) 71 ui::HOVER_TYPE_LAST)
72 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::ImageAnimationPolicy, 72 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::ImageAnimationPolicy,
73 content::IMAGE_ANIMATION_POLICY_ALLOWED, 73 content::IMAGE_ANIMATION_POLICY_ALLOWED,
74 content::IMAGE_ANIMATION_POLICY_NO_ANIMATION) 74 content::IMAGE_ANIMATION_POLICY_NO_ANIMATION)
75 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::ViewportStyle, 75 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::ViewportStyle,
76 content::ViewportStyle::DEFAULT, 76 content::ViewportStyle::DEFAULT,
77 content::ViewportStyle::LAST) 77 content::ViewportStyle::LAST)
78 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::AutoplayPolicy,
79 content::AutoplayPolicy::kNoUserGestureRequired,
80 content::AutoplayPolicy::kUserGestureRequired);
78 81
79 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) 82 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint)
80 IPC_STRUCT_TRAITS_MEMBER(x) 83 IPC_STRUCT_TRAITS_MEMBER(x)
81 IPC_STRUCT_TRAITS_MEMBER(y) 84 IPC_STRUCT_TRAITS_MEMBER(y)
82 IPC_STRUCT_TRAITS_END() 85 IPC_STRUCT_TRAITS_END()
83 86
84 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) 87 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect)
85 IPC_STRUCT_TRAITS_MEMBER(x) 88 IPC_STRUCT_TRAITS_MEMBER(x)
86 IPC_STRUCT_TRAITS_MEMBER(y) 89 IPC_STRUCT_TRAITS_MEMBER(y)
87 IPC_STRUCT_TRAITS_MEMBER(width) 90 IPC_STRUCT_TRAITS_MEMBER(width)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_initial_budget) 216 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_initial_budget)
214 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_budget) 217 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_budget)
215 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_delay) 218 IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_delay)
216 #if defined(OS_ANDROID) 219 #if defined(OS_ANDROID)
217 IPC_STRUCT_TRAITS_MEMBER(text_autosizing_enabled) 220 IPC_STRUCT_TRAITS_MEMBER(text_autosizing_enabled)
218 IPC_STRUCT_TRAITS_MEMBER(font_scale_factor) 221 IPC_STRUCT_TRAITS_MEMBER(font_scale_factor)
219 IPC_STRUCT_TRAITS_MEMBER(device_scale_adjustment) 222 IPC_STRUCT_TRAITS_MEMBER(device_scale_adjustment)
220 IPC_STRUCT_TRAITS_MEMBER(force_enable_zoom) 223 IPC_STRUCT_TRAITS_MEMBER(force_enable_zoom)
221 IPC_STRUCT_TRAITS_MEMBER(fullscreen_supported) 224 IPC_STRUCT_TRAITS_MEMBER(fullscreen_supported)
222 IPC_STRUCT_TRAITS_MEMBER(double_tap_to_zoom_enabled) 225 IPC_STRUCT_TRAITS_MEMBER(double_tap_to_zoom_enabled)
223 IPC_STRUCT_TRAITS_MEMBER(user_gesture_required_for_media_playback)
224 IPC_STRUCT_TRAITS_MEMBER(media_playback_gesture_whitelist_scope) 226 IPC_STRUCT_TRAITS_MEMBER(media_playback_gesture_whitelist_scope)
225 IPC_STRUCT_TRAITS_MEMBER(default_video_poster_url) 227 IPC_STRUCT_TRAITS_MEMBER(default_video_poster_url)
226 IPC_STRUCT_TRAITS_MEMBER(support_deprecated_target_density_dpi) 228 IPC_STRUCT_TRAITS_MEMBER(support_deprecated_target_density_dpi)
227 IPC_STRUCT_TRAITS_MEMBER(use_legacy_background_size_shorthand_behavior) 229 IPC_STRUCT_TRAITS_MEMBER(use_legacy_background_size_shorthand_behavior)
228 IPC_STRUCT_TRAITS_MEMBER(wide_viewport_quirk) 230 IPC_STRUCT_TRAITS_MEMBER(wide_viewport_quirk)
229 IPC_STRUCT_TRAITS_MEMBER(use_wide_viewport) 231 IPC_STRUCT_TRAITS_MEMBER(use_wide_viewport)
230 IPC_STRUCT_TRAITS_MEMBER(force_zero_layout_height) 232 IPC_STRUCT_TRAITS_MEMBER(force_zero_layout_height)
231 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_layout_size_quirk) 233 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_layout_size_quirk)
232 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_merge_content_quirk) 234 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_merge_content_quirk)
233 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_non_user_scalable_quirk) 235 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_non_user_scalable_quirk)
234 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_zero_values_quirk) 236 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_zero_values_quirk)
235 IPC_STRUCT_TRAITS_MEMBER(clobber_user_agent_initial_scale_quirk) 237 IPC_STRUCT_TRAITS_MEMBER(clobber_user_agent_initial_scale_quirk)
236 IPC_STRUCT_TRAITS_MEMBER(ignore_main_frame_overflow_hidden_quirk) 238 IPC_STRUCT_TRAITS_MEMBER(ignore_main_frame_overflow_hidden_quirk)
237 IPC_STRUCT_TRAITS_MEMBER(report_screen_size_in_physical_pixels_quirk) 239 IPC_STRUCT_TRAITS_MEMBER(report_screen_size_in_physical_pixels_quirk)
238 IPC_STRUCT_TRAITS_MEMBER(resue_global_for_unowned_main_frame) 240 IPC_STRUCT_TRAITS_MEMBER(resue_global_for_unowned_main_frame)
239 IPC_STRUCT_TRAITS_MEMBER(progress_bar_completion) 241 IPC_STRUCT_TRAITS_MEMBER(progress_bar_completion)
240 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled_by_default) 242 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled_by_default)
241 IPC_STRUCT_TRAITS_MEMBER(video_fullscreen_orientation_lock_enabled) 243 IPC_STRUCT_TRAITS_MEMBER(video_fullscreen_orientation_lock_enabled)
242 IPC_STRUCT_TRAITS_MEMBER(video_fullscreen_detection_enabled) 244 IPC_STRUCT_TRAITS_MEMBER(video_fullscreen_detection_enabled)
243 IPC_STRUCT_TRAITS_MEMBER(embedded_media_experience_enabled) 245 IPC_STRUCT_TRAITS_MEMBER(embedded_media_experience_enabled)
244 #else // defined(OS_ANDROID)
245 IPC_STRUCT_TRAITS_MEMBER(cross_origin_media_playback_requires_user_gesture)
246 #endif // defined(OS_ANDROID) 246 #endif // defined(OS_ANDROID)
247 IPC_STRUCT_TRAITS_MEMBER(default_minimum_page_scale_factor) 247 IPC_STRUCT_TRAITS_MEMBER(default_minimum_page_scale_factor)
248 IPC_STRUCT_TRAITS_MEMBER(default_maximum_page_scale_factor) 248 IPC_STRUCT_TRAITS_MEMBER(default_maximum_page_scale_factor)
249 IPC_STRUCT_TRAITS_MEMBER(hide_download_ui) 249 IPC_STRUCT_TRAITS_MEMBER(hide_download_ui)
250 IPC_STRUCT_TRAITS_MEMBER(background_video_track_optimization_enabled) 250 IPC_STRUCT_TRAITS_MEMBER(background_video_track_optimization_enabled)
251 IPC_STRUCT_TRAITS_MEMBER(enable_instant_source_buffer_gc) 251 IPC_STRUCT_TRAITS_MEMBER(enable_instant_source_buffer_gc)
252 IPC_STRUCT_TRAITS_MEMBER(presentation_receiver) 252 IPC_STRUCT_TRAITS_MEMBER(presentation_receiver)
253 IPC_STRUCT_TRAITS_MEMBER(media_controls_enabled) 253 IPC_STRUCT_TRAITS_MEMBER(media_controls_enabled)
254 IPC_STRUCT_TRAITS_MEMBER(do_not_update_selection_on_mutating_selection_range) 254 IPC_STRUCT_TRAITS_MEMBER(do_not_update_selection_on_mutating_selection_range)
255 IPC_STRUCT_TRAITS_MEMBER(autoplay_policy)
nasko 2017/04/27 16:52:50 nit: media_autoplay_policy?
mlamouri (slow - plz ping) 2017/04/27 21:34:14 nasko, to me, "autoplay" is for audio/video. What
nasko 2017/04/27 21:42:56 Do you associate playback with media only or not?
255 IPC_STRUCT_TRAITS_END() 256 IPC_STRUCT_TRAITS_END()
256 257
257 IPC_STRUCT_TRAITS_BEGIN(blink::mojom::WindowFeatures) 258 IPC_STRUCT_TRAITS_BEGIN(blink::mojom::WindowFeatures)
258 IPC_STRUCT_TRAITS_MEMBER(x) 259 IPC_STRUCT_TRAITS_MEMBER(x)
259 IPC_STRUCT_TRAITS_MEMBER(has_x) 260 IPC_STRUCT_TRAITS_MEMBER(has_x)
260 IPC_STRUCT_TRAITS_MEMBER(y) 261 IPC_STRUCT_TRAITS_MEMBER(y)
261 IPC_STRUCT_TRAITS_MEMBER(has_y) 262 IPC_STRUCT_TRAITS_MEMBER(has_y)
262 IPC_STRUCT_TRAITS_MEMBER(width) 263 IPC_STRUCT_TRAITS_MEMBER(width)
263 IPC_STRUCT_TRAITS_MEMBER(has_width) 264 IPC_STRUCT_TRAITS_MEMBER(has_width)
264 IPC_STRUCT_TRAITS_MEMBER(height) 265 IPC_STRUCT_TRAITS_MEMBER(height)
(...skipping 19 matching lines...) Expand all
284 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST) 285 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST)
285 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST) 286 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST)
286 287
287 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds) 288 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds)
288 IPC_STRUCT_TRAITS_MEMBER(offset_container_id) 289 IPC_STRUCT_TRAITS_MEMBER(offset_container_id)
289 IPC_STRUCT_TRAITS_MEMBER(bounds) 290 IPC_STRUCT_TRAITS_MEMBER(bounds)
290 IPC_STRUCT_TRAITS_MEMBER(transform) 291 IPC_STRUCT_TRAITS_MEMBER(transform)
291 IPC_STRUCT_TRAITS_END() 292 IPC_STRUCT_TRAITS_END()
292 293
293 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 294 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698