[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / content / public / common / common_param_traits_macros.h
blob13d308b2a297e69dbd15d26bc02d36064626e60f
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
3 // found in the LICENSE file.
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
7 // file.
8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
11 #include "content/public/common/console_message_level.h"
12 #include "content/public/common/page_transition_types.h"
13 #include "content/public/common/password_form.h"
14 #include "content/public/common/security_style.h"
15 #include "content/public/common/ssl_status.h"
16 #include "ipc/ipc_message_macros.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
20 #include "webkit/glue/webpreferences.h"
21 #include "webkit/glue/window_open_disposition.h"
22 #include "webkit/plugins/webplugininfo.h"
24 #undef IPC_MESSAGE_EXPORT
25 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
27 IPC_ENUM_TRAITS(content::ConsoleMessageLevel)
28 IPC_ENUM_TRAITS(content::PageTransition)
29 IPC_ENUM_TRAITS(content::SecurityStyle)
30 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
31 IPC_ENUM_TRAITS(WindowOpenDisposition)
32 IPC_ENUM_TRAITS(webkit_glue::WebPreferences::EditingBehavior)
34 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebPoint)
35 IPC_STRUCT_TRAITS_MEMBER(x)
36 IPC_STRUCT_TRAITS_MEMBER(y)
37 IPC_STRUCT_TRAITS_END()
39 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect)
40 IPC_STRUCT_TRAITS_MEMBER(x)
41 IPC_STRUCT_TRAITS_MEMBER(y)
42 IPC_STRUCT_TRAITS_MEMBER(width)
43 IPC_STRUCT_TRAITS_MEMBER(height)
44 IPC_STRUCT_TRAITS_END()
46 IPC_STRUCT_TRAITS_BEGIN(content::PasswordForm)
47 IPC_STRUCT_TRAITS_MEMBER(signon_realm)
48 IPC_STRUCT_TRAITS_MEMBER(origin)
49 IPC_STRUCT_TRAITS_MEMBER(action)
50 IPC_STRUCT_TRAITS_MEMBER(submit_element)
51 IPC_STRUCT_TRAITS_MEMBER(username_element)
52 IPC_STRUCT_TRAITS_MEMBER(username_value)
53 IPC_STRUCT_TRAITS_MEMBER(password_element)
54 IPC_STRUCT_TRAITS_MEMBER(password_value)
55 IPC_STRUCT_TRAITS_MEMBER(old_password_element)
56 IPC_STRUCT_TRAITS_MEMBER(old_password_value)
57 IPC_STRUCT_TRAITS_MEMBER(ssl_valid)
58 IPC_STRUCT_TRAITS_MEMBER(preferred)
59 IPC_STRUCT_TRAITS_MEMBER(blacklisted_by_user)
60 IPC_STRUCT_TRAITS_END()
62 IPC_STRUCT_TRAITS_BEGIN(content::SSLStatus)
63 IPC_STRUCT_TRAITS_MEMBER(security_style)
64 IPC_STRUCT_TRAITS_MEMBER(cert_id)
65 IPC_STRUCT_TRAITS_MEMBER(cert_status)
66 IPC_STRUCT_TRAITS_MEMBER(security_bits)
67 IPC_STRUCT_TRAITS_MEMBER(connection_status)
68 IPC_STRUCT_TRAITS_MEMBER(content_status)
69 IPC_STRUCT_TRAITS_END()
71 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginMimeType)
72 IPC_STRUCT_TRAITS_MEMBER(mime_type)
73 IPC_STRUCT_TRAITS_MEMBER(file_extensions)
74 IPC_STRUCT_TRAITS_MEMBER(description)
75 IPC_STRUCT_TRAITS_MEMBER(additional_param_names)
76 IPC_STRUCT_TRAITS_MEMBER(additional_param_values)
77 IPC_STRUCT_TRAITS_END()
79 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginInfo)
80 IPC_STRUCT_TRAITS_MEMBER(name)
81 IPC_STRUCT_TRAITS_MEMBER(path)
82 IPC_STRUCT_TRAITS_MEMBER(version)
83 IPC_STRUCT_TRAITS_MEMBER(desc)
84 IPC_STRUCT_TRAITS_MEMBER(mime_types)
85 IPC_STRUCT_TRAITS_MEMBER(type)
86 IPC_STRUCT_TRAITS_MEMBER(pepper_permissions)
87 IPC_STRUCT_TRAITS_END()
89 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebPreferences)
90 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
91 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
92 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
93 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
94 IPC_STRUCT_TRAITS_MEMBER(cursive_font_family_map)
95 IPC_STRUCT_TRAITS_MEMBER(fantasy_font_family_map)
96 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
97 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
98 IPC_STRUCT_TRAITS_MEMBER(apply_default_device_scale_factor_in_compositor)
99 IPC_STRUCT_TRAITS_MEMBER(apply_page_scale_factor_in_compositor)
100 IPC_STRUCT_TRAITS_MEMBER(per_tile_painting_enabled)
101 IPC_STRUCT_TRAITS_MEMBER(accelerated_animation_enabled)
102 IPC_STRUCT_TRAITS_MEMBER(minimum_font_size)
103 IPC_STRUCT_TRAITS_MEMBER(minimum_logical_font_size)
104 IPC_STRUCT_TRAITS_MEMBER(default_encoding)
105 IPC_STRUCT_TRAITS_MEMBER(javascript_enabled)
106 IPC_STRUCT_TRAITS_MEMBER(web_security_enabled)
107 IPC_STRUCT_TRAITS_MEMBER(javascript_can_open_windows_automatically)
108 IPC_STRUCT_TRAITS_MEMBER(loads_images_automatically)
109 IPC_STRUCT_TRAITS_MEMBER(images_enabled)
110 IPC_STRUCT_TRAITS_MEMBER(plugins_enabled)
111 IPC_STRUCT_TRAITS_MEMBER(dom_paste_enabled)
112 IPC_STRUCT_TRAITS_MEMBER(developer_extras_enabled)
113 IPC_STRUCT_TRAITS_MEMBER(inspector_settings)
114 IPC_STRUCT_TRAITS_MEMBER(site_specific_quirks_enabled)
115 IPC_STRUCT_TRAITS_MEMBER(shrinks_standalone_images_to_fit)
116 IPC_STRUCT_TRAITS_MEMBER(uses_universal_detector)
117 IPC_STRUCT_TRAITS_MEMBER(text_areas_are_resizable)
118 IPC_STRUCT_TRAITS_MEMBER(java_enabled)
119 IPC_STRUCT_TRAITS_MEMBER(allow_scripts_to_close_windows)
120 IPC_STRUCT_TRAITS_MEMBER(uses_page_cache)
121 IPC_STRUCT_TRAITS_MEMBER(page_cache_supports_plugins)
122 IPC_STRUCT_TRAITS_MEMBER(remote_fonts_enabled)
123 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard)
124 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled)
125 IPC_STRUCT_TRAITS_MEMBER(dns_prefetching_enabled)
126 IPC_STRUCT_TRAITS_MEMBER(local_storage_enabled)
127 IPC_STRUCT_TRAITS_MEMBER(databases_enabled)
128 IPC_STRUCT_TRAITS_MEMBER(application_cache_enabled)
129 IPC_STRUCT_TRAITS_MEMBER(tabs_to_links)
130 IPC_STRUCT_TRAITS_MEMBER(hyperlink_auditing_enabled)
131 IPC_STRUCT_TRAITS_MEMBER(is_online)
132 IPC_STRUCT_TRAITS_MEMBER(user_style_sheet_enabled)
133 IPC_STRUCT_TRAITS_MEMBER(user_style_sheet_location)
134 IPC_STRUCT_TRAITS_MEMBER(author_and_user_styles_enabled)
135 IPC_STRUCT_TRAITS_MEMBER(frame_flattening_enabled)
136 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls)
137 IPC_STRUCT_TRAITS_MEMBER(allow_file_access_from_file_urls)
138 IPC_STRUCT_TRAITS_MEMBER(webaudio_enabled)
139 IPC_STRUCT_TRAITS_MEMBER(experimental_webgl_enabled)
140 IPC_STRUCT_TRAITS_MEMBER(flash_3d_enabled)
141 IPC_STRUCT_TRAITS_MEMBER(flash_stage3d_enabled)
142 IPC_STRUCT_TRAITS_MEMBER(gl_multisampling_enabled)
143 IPC_STRUCT_TRAITS_MEMBER(privileged_webgl_extensions_enabled)
144 IPC_STRUCT_TRAITS_MEMBER(show_composited_layer_borders)
145 IPC_STRUCT_TRAITS_MEMBER(show_composited_layer_tree)
146 IPC_STRUCT_TRAITS_MEMBER(show_fps_counter)
147 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_for_overflow_scroll_enabled)
148 IPC_STRUCT_TRAITS_MEMBER(show_paint_rects)
149 IPC_STRUCT_TRAITS_MEMBER(render_vsync_enabled)
150 IPC_STRUCT_TRAITS_MEMBER(asynchronous_spell_checking_enabled)
151 IPC_STRUCT_TRAITS_MEMBER(unified_textchecker_enabled)
152 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_enabled)
153 IPC_STRUCT_TRAITS_MEMBER(force_compositing_mode)
154 IPC_STRUCT_TRAITS_MEMBER(fixed_position_compositing_enabled)
155 IPC_STRUCT_TRAITS_MEMBER(accelerated_2d_canvas_enabled)
156 IPC_STRUCT_TRAITS_MEMBER(deferred_2d_canvas_enabled)
157 IPC_STRUCT_TRAITS_MEMBER(accelerated_painting_enabled)
158 IPC_STRUCT_TRAITS_MEMBER(accelerated_filters_enabled)
159 IPC_STRUCT_TRAITS_MEMBER(gesture_tap_highlight_enabled)
160 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_for_plugins_enabled)
161 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_for_3d_transforms_enabled)
162 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_for_animation_enabled)
163 IPC_STRUCT_TRAITS_MEMBER(accelerated_compositing_for_video_enabled)
164 IPC_STRUCT_TRAITS_MEMBER(memory_info_enabled)
165 IPC_STRUCT_TRAITS_MEMBER(fullscreen_enabled)
166 IPC_STRUCT_TRAITS_MEMBER(allow_displaying_insecure_content)
167 IPC_STRUCT_TRAITS_MEMBER(allow_running_insecure_content)
168 IPC_STRUCT_TRAITS_MEMBER(enable_scroll_animator)
169 IPC_STRUCT_TRAITS_MEMBER(visual_word_movement_enabled)
170 IPC_STRUCT_TRAITS_MEMBER(password_echo_enabled)
171 IPC_STRUCT_TRAITS_MEMBER(css_sticky_position_enabled)
172 IPC_STRUCT_TRAITS_MEMBER(css_shaders_enabled)
173 IPC_STRUCT_TRAITS_MEMBER(css_variables_enabled)
174 IPC_STRUCT_TRAITS_MEMBER(css_grid_layout_enabled)
175 IPC_STRUCT_TRAITS_MEMBER(touch_enabled)
176 IPC_STRUCT_TRAITS_MEMBER(device_supports_touch)
177 IPC_STRUCT_TRAITS_MEMBER(device_supports_mouse)
178 IPC_STRUCT_TRAITS_MEMBER(touch_adjustment_enabled)
179 IPC_STRUCT_TRAITS_MEMBER(default_tile_width)
180 IPC_STRUCT_TRAITS_MEMBER(default_tile_height)
181 IPC_STRUCT_TRAITS_MEMBER(max_untiled_layer_width)
182 IPC_STRUCT_TRAITS_MEMBER(max_untiled_layer_height)
183 IPC_STRUCT_TRAITS_MEMBER(fixed_position_creates_stacking_context)
184 IPC_STRUCT_TRAITS_MEMBER(sync_xhr_in_documents_enabled)
185 IPC_STRUCT_TRAITS_MEMBER(deferred_image_decoding_enabled)
186 IPC_STRUCT_TRAITS_MEMBER(should_respect_image_orientation)
187 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
188 IPC_STRUCT_TRAITS_MEMBER(editing_behavior)
189 IPC_STRUCT_TRAITS_MEMBER(supports_multiple_windows)
190 IPC_STRUCT_TRAITS_MEMBER(cookie_enabled)
191 IPC_STRUCT_TRAITS_MEMBER(apply_page_scale_factor_in_compositor)
192 #if defined(OS_ANDROID)
193 IPC_STRUCT_TRAITS_MEMBER(text_autosizing_enabled)
194 IPC_STRUCT_TRAITS_MEMBER(font_scale_factor)
195 IPC_STRUCT_TRAITS_MEMBER(force_enable_zoom)
196 #endif
197 IPC_STRUCT_TRAITS_END()
199 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_