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

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

Issue 685153003: Pointer/hover media query support: platform-independent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed enum naming style Created 6 years, 1 month 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 | « no previous file | content/public/common/web_preferences.h » ('j') | ui/base/touch/touch_device.h » ('J')
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 // 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 28 matching lines...) Expand all
39 blink::WebReferrerPolicyLast) 39 blink::WebReferrerPolicyLast)
40 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, 40 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior,
41 content::EDITING_BEHAVIOR_LAST) 41 content::EDITING_BEHAVIOR_LAST)
42 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, 42 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition,
43 WINDOW_OPEN_DISPOSITION_LAST) 43 WINDOW_OPEN_DISPOSITION_LAST)
44 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY) 44 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY)
45 IPC_ENUM_TRAITS_MAX_VALUE(content::V8CacheOptions, 45 IPC_ENUM_TRAITS_MAX_VALUE(content::V8CacheOptions,
46 content::V8_CACHE_OPTIONS_LAST) 46 content::V8_CACHE_OPTIONS_LAST)
47 IPC_ENUM_TRAITS_MAX_VALUE(content::V8ScriptStreamingMode, 47 IPC_ENUM_TRAITS_MAX_VALUE(content::V8ScriptStreamingMode,
48 content::V8_SCRIPT_STREAMING_MODE_LAST) 48 content::V8_SCRIPT_STREAMING_MODE_LAST)
49 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::PointerType,
nasko 2014/11/12 22:07:00 Since these enums are bitfields, no need for this
mustaq 2014/11/12 22:12:58 Done.
mustaq 2014/11/13 16:02:05 I had to bring back these range-checking macros! L
50 ui::POINTER_TYPE_FIRST,
51 ui::POINTER_TYPE_LAST)
52 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::HoverType,
53 ui::HOVER_TYPE_FIRST,
54 ui::HOVER_TYPE_LAST)
49 55
50 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) 56 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint)
51 IPC_STRUCT_TRAITS_MEMBER(x) 57 IPC_STRUCT_TRAITS_MEMBER(x)
52 IPC_STRUCT_TRAITS_MEMBER(y) 58 IPC_STRUCT_TRAITS_MEMBER(y)
53 IPC_STRUCT_TRAITS_END() 59 IPC_STRUCT_TRAITS_END()
54 60
55 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) 61 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect)
56 IPC_STRUCT_TRAITS_MEMBER(x) 62 IPC_STRUCT_TRAITS_MEMBER(x)
57 IPC_STRUCT_TRAITS_MEMBER(y) 63 IPC_STRUCT_TRAITS_MEMBER(y)
58 IPC_STRUCT_TRAITS_MEMBER(width) 64 IPC_STRUCT_TRAITS_MEMBER(width)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 IPC_STRUCT_TRAITS_MEMBER(allow_running_insecure_content) 164 IPC_STRUCT_TRAITS_MEMBER(allow_running_insecure_content)
159 IPC_STRUCT_TRAITS_MEMBER(enable_scroll_animator) 165 IPC_STRUCT_TRAITS_MEMBER(enable_scroll_animator)
160 IPC_STRUCT_TRAITS_MEMBER(password_echo_enabled) 166 IPC_STRUCT_TRAITS_MEMBER(password_echo_enabled)
161 IPC_STRUCT_TRAITS_MEMBER(should_clear_document_background) 167 IPC_STRUCT_TRAITS_MEMBER(should_clear_document_background)
162 IPC_STRUCT_TRAITS_MEMBER(region_based_columns_enabled) 168 IPC_STRUCT_TRAITS_MEMBER(region_based_columns_enabled)
163 IPC_STRUCT_TRAITS_MEMBER(touch_enabled) 169 IPC_STRUCT_TRAITS_MEMBER(touch_enabled)
164 IPC_STRUCT_TRAITS_MEMBER(device_supports_touch) 170 IPC_STRUCT_TRAITS_MEMBER(device_supports_touch)
165 IPC_STRUCT_TRAITS_MEMBER(device_supports_mouse) 171 IPC_STRUCT_TRAITS_MEMBER(device_supports_mouse)
166 IPC_STRUCT_TRAITS_MEMBER(touch_adjustment_enabled) 172 IPC_STRUCT_TRAITS_MEMBER(touch_adjustment_enabled)
167 IPC_STRUCT_TRAITS_MEMBER(pointer_events_max_touch_points) 173 IPC_STRUCT_TRAITS_MEMBER(pointer_events_max_touch_points)
174 IPC_STRUCT_TRAITS_MEMBER(available_pointer_types)
175 IPC_STRUCT_TRAITS_MEMBER(primary_pointer_type)
176 IPC_STRUCT_TRAITS_MEMBER(available_hover_types)
177 IPC_STRUCT_TRAITS_MEMBER(primary_hover_type)
168 IPC_STRUCT_TRAITS_MEMBER(sync_xhr_in_documents_enabled) 178 IPC_STRUCT_TRAITS_MEMBER(sync_xhr_in_documents_enabled)
169 IPC_STRUCT_TRAITS_MEMBER(deferred_image_decoding_enabled) 179 IPC_STRUCT_TRAITS_MEMBER(deferred_image_decoding_enabled)
170 IPC_STRUCT_TRAITS_MEMBER(image_color_profiles_enabled) 180 IPC_STRUCT_TRAITS_MEMBER(image_color_profiles_enabled)
171 IPC_STRUCT_TRAITS_MEMBER(should_respect_image_orientation) 181 IPC_STRUCT_TRAITS_MEMBER(should_respect_image_orientation)
172 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores) 182 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
173 IPC_STRUCT_TRAITS_MEMBER(editing_behavior) 183 IPC_STRUCT_TRAITS_MEMBER(editing_behavior)
174 IPC_STRUCT_TRAITS_MEMBER(supports_multiple_windows) 184 IPC_STRUCT_TRAITS_MEMBER(supports_multiple_windows)
175 IPC_STRUCT_TRAITS_MEMBER(viewport_enabled) 185 IPC_STRUCT_TRAITS_MEMBER(viewport_enabled)
176 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_enabled) 186 IPC_STRUCT_TRAITS_MEMBER(viewport_meta_enabled)
177 IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes) 187 IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) 232 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible)
223 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) 233 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible)
224 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) 234 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible)
225 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) 235 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible)
226 IPC_STRUCT_TRAITS_MEMBER(resizable) 236 IPC_STRUCT_TRAITS_MEMBER(resizable)
227 IPC_STRUCT_TRAITS_MEMBER(fullscreen) 237 IPC_STRUCT_TRAITS_MEMBER(fullscreen)
228 IPC_STRUCT_TRAITS_MEMBER(dialog) 238 IPC_STRUCT_TRAITS_MEMBER(dialog)
229 IPC_STRUCT_TRAITS_END() 239 IPC_STRUCT_TRAITS_END()
230 240
231 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 241 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/common/web_preferences.h » ('j') | ui/base/touch/touch_device.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698