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

Side by Side Diff: webkit/common/webpreferences.h

Issue 263423003: Add a policy to re-enable deprecated web platform features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A struct for managing webkit's settings. 5 // A struct for managing webkit's settings.
6 // 6 //
7 // Adding new values to this class probably involves updating 7 // Adding new values to this class probably involves updating
8 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ 8 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/
9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc.
10 10
(...skipping 24 matching lines...) Expand all
35 WebInspectorPreferences; 35 WebInspectorPreferences;
36 36
37 enum EditingBehavior { 37 enum EditingBehavior {
38 EDITING_BEHAVIOR_MAC, 38 EDITING_BEHAVIOR_MAC,
39 EDITING_BEHAVIOR_WIN, 39 EDITING_BEHAVIOR_WIN,
40 EDITING_BEHAVIOR_UNIX, 40 EDITING_BEHAVIOR_UNIX,
41 EDITING_BEHAVIOR_ANDROID, 41 EDITING_BEHAVIOR_ANDROID,
42 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID 42 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID
43 }; 43 };
44 44
45 // Enum of features that can be re-enabled via WebPreferences.
46 enum DeprecatedFeature {
47 DEPRECATED_FEATURE_SHOW_MODAL_DIALOG,
48 DEPRECATED_FEATURE_COUNT,
49 };
50
45 51
46 // The ISO 15924 script code for undetermined script aka Common. It's the 52 // The ISO 15924 script code for undetermined script aka Common. It's the
47 // default used on WebKit's side to get/set a font setting when no script is 53 // default used on WebKit's side to get/set a font setting when no script is
48 // specified. 54 // specified.
49 WEBKIT_COMMON_EXPORT extern const char kCommonScript[]; 55 WEBKIT_COMMON_EXPORT extern const char kCommonScript[];
50 56
51 } // namespace webkit_glue 57 } // namespace webkit_glue
52 58
53 struct WEBKIT_COMMON_EXPORT WebPreferences { 59 struct WEBKIT_COMMON_EXPORT WebPreferences {
54 webkit_glue::ScriptFontFamilyMap standard_font_family_map; 60 webkit_glue::ScriptFontFamilyMap standard_font_family_map;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // only controls whether or not the "document.cookie" field is properly 160 // only controls whether or not the "document.cookie" field is properly
155 // connected to the backing store, for instance if you wanted to be able to 161 // connected to the backing store, for instance if you wanted to be able to
156 // define custom getters and setters from within a unique security content 162 // define custom getters and setters from within a unique security content
157 // without raising a DOM security exception. 163 // without raising a DOM security exception.
158 bool cookie_enabled; 164 bool cookie_enabled;
159 165
160 // This flag indicates whether H/W accelerated video decode is enabled for 166 // This flag indicates whether H/W accelerated video decode is enabled for
161 // pepper plugins. Defaults to false. 167 // pepper plugins. Defaults to false.
162 bool pepper_accelerated_video_decode_enabled; 168 bool pepper_accelerated_video_decode_enabled;
163 169
170 // A bitset indicating which deprecated features to enable in the renderer.
jamesr 2014/06/10 17:59:19 the comment says bitset but the type isn't - it's
171 // See enum DeprecatedFeature for valid values.
172 std::vector<bool> deprecated_features_to_enable;
173
164 #if defined(OS_ANDROID) 174 #if defined(OS_ANDROID)
165 bool text_autosizing_enabled; 175 bool text_autosizing_enabled;
166 float font_scale_factor; 176 float font_scale_factor;
167 float device_scale_adjustment; 177 float device_scale_adjustment;
168 bool force_enable_zoom; 178 bool force_enable_zoom;
169 bool double_tap_to_zoom_enabled; 179 bool double_tap_to_zoom_enabled;
170 bool user_gesture_required_for_media_playback; 180 bool user_gesture_required_for_media_playback;
171 GURL default_video_poster_url; 181 GURL default_video_poster_url;
172 bool support_deprecated_target_density_dpi; 182 bool support_deprecated_target_density_dpi;
173 bool use_legacy_background_size_shorthand_behavior; 183 bool use_legacy_background_size_shorthand_behavior;
174 bool wide_viewport_quirk; 184 bool wide_viewport_quirk;
175 bool use_wide_viewport; 185 bool use_wide_viewport;
176 bool viewport_meta_layout_size_quirk; 186 bool viewport_meta_layout_size_quirk;
177 bool viewport_meta_merge_content_quirk; 187 bool viewport_meta_merge_content_quirk;
178 bool viewport_meta_non_user_scalable_quirk; 188 bool viewport_meta_non_user_scalable_quirk;
179 bool viewport_meta_zero_values_quirk; 189 bool viewport_meta_zero_values_quirk;
180 bool clobber_user_agent_initial_scale_quirk; 190 bool clobber_user_agent_initial_scale_quirk;
181 bool ignore_main_frame_overflow_hidden_quirk; 191 bool ignore_main_frame_overflow_hidden_quirk;
182 bool report_screen_size_in_physical_pixels_quirk; 192 bool report_screen_size_in_physical_pixels_quirk;
183 #endif 193 #endif
184 194
185 // We try to keep the default values the same as the default values in 195 // We try to keep the default values the same as the default values in
186 // chrome, except for the cases where it would require lots of extra work for 196 // chrome, except for the cases where it would require lots of extra work for
187 // the embedder to use the same default value. 197 // the embedder to use the same default value.
188 WebPreferences(); 198 WebPreferences();
189 ~WebPreferences(); 199 ~WebPreferences();
190 }; 200 };
191 201
192 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ 202 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__
OLDNEW
« chrome/browser/chrome_content_browser_client.cc ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698