OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |