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

Side by Side Diff: content/public/common/renderer_preferences.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: 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 (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 // A struct for managing browser's settings that apply to the renderer or its 5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's 6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit. 7 // glue layer rather than applying to just WebKit.
8 // 8 //
9 // Adding new values to this class probably involves updating 9 // Adding new values to this class probably involves updating
10 // common/view_messages.h, browser/browser.cc, etc. 10 // common/view_messages.h, browser/browser.cc, etc.
(...skipping 27 matching lines...) Expand all
38 }; 38 };
39 39
40 enum TapMultipleTargetsStrategy { 40 enum TapMultipleTargetsStrategy {
41 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0, 41 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0,
42 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP, 42 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP,
43 TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 43 TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
44 44
45 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 45 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
46 }; 46 };
47 47
48 enum RendererPreferencesDeprecatedFeatureEnum {
49 RENDERER_PREFERENCES_DEPRECATED_FEATURE_SHOW_MODAL_DIALOG,
50 RENDERER_PREFERENCES_DEPRECATED_FEATURE_COUNT,
51 };
52
48 struct CONTENT_EXPORT RendererPreferences { 53 struct CONTENT_EXPORT RendererPreferences {
49 RendererPreferences(); 54 RendererPreferences();
50 ~RendererPreferences(); 55 ~RendererPreferences();
51 56
52 // Whether the renderer's current browser context accept drops from the OS 57 // Whether the renderer's current browser context accept drops from the OS
53 // that result in navigations away from the current page. 58 // that result in navigations away from the current page.
54 bool can_accept_load_drops; 59 bool can_accept_load_drops;
55 60
56 // Whether text should be antialiased. 61 // Whether text should be antialiased.
57 // Currently only used by Linux. 62 // Currently only used by Linux.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Disables rendering default error page when client choses to block a page. 146 // Disables rendering default error page when client choses to block a page.
142 // Corresponds to net::ERR_BLOCKED_BY_CLIENT. 147 // Corresponds to net::ERR_BLOCKED_BY_CLIENT.
143 bool disable_client_blocked_error_page; 148 bool disable_client_blocked_error_page;
144 149
145 // Determines whether plugins are allowed to enter fullscreen mode. 150 // Determines whether plugins are allowed to enter fullscreen mode.
146 bool plugin_fullscreen_allowed; 151 bool plugin_fullscreen_allowed;
147 152
148 // Whether video-overlay (hole-punching) should be used for the embedded 153 // Whether video-overlay (hole-punching) should be used for the embedded
149 // encrypted video. Currently only used by Android. 154 // encrypted video. Currently only used by Android.
150 bool use_video_overlay_for_embedded_encrypted_video; 155 bool use_video_overlay_for_embedded_encrypted_video;
156
157 // A bitset indicating which deprecated features to enable in the renderer.
158 std::vector<bool> deprecated_features_to_enable;
Mattias Nissler (ping if slow) 2014/05/06 14:31:15 Not sure whether it's better to put this here or i
abarth-chromium 2014/05/10 00:27:39 These are going to map down to WebRuntimeFeatures,
Mattias Nissler (ping if slow) 2014/05/19 15:03:08 OK, moved to WebPreferences.
151 }; 159 };
152 160
153 } // namespace content 161 } // namespace content
154 162
155 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 163 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698