OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/glue/webpreferences.h" | 5 #include "webkit/glue/webpreferences.h" |
6 | 6 |
7 #include <unicode/uchar.h> | 7 #include <unicode/uchar.h> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 hyperlink_auditing_enabled(true), | 62 hyperlink_auditing_enabled(true), |
63 is_online(true), | 63 is_online(true), |
64 user_style_sheet_enabled(false), | 64 user_style_sheet_enabled(false), |
65 author_and_user_styles_enabled(true), | 65 author_and_user_styles_enabled(true), |
66 frame_flattening_enabled(false), | 66 frame_flattening_enabled(false), |
67 allow_universal_access_from_file_urls(false), | 67 allow_universal_access_from_file_urls(false), |
68 allow_file_access_from_file_urls(false), | 68 allow_file_access_from_file_urls(false), |
69 webaudio_enabled(false), | 69 webaudio_enabled(false), |
70 experimental_webgl_enabled(false), | 70 experimental_webgl_enabled(false), |
71 gl_multisampling_enabled(true), | 71 gl_multisampling_enabled(true), |
| 72 privileged_webgl_extensions_enabled(false), |
72 show_composited_layer_borders(false), | 73 show_composited_layer_borders(false), |
73 show_composited_layer_tree(false), | 74 show_composited_layer_tree(false), |
74 show_fps_counter(false), | 75 show_fps_counter(false), |
75 asynchronous_spell_checking_enabled(true), | 76 asynchronous_spell_checking_enabled(true), |
76 accelerated_compositing_enabled(false), | 77 accelerated_compositing_enabled(false), |
77 threaded_compositing_enabled(false), | 78 threaded_compositing_enabled(false), |
78 force_compositing_mode(false), | 79 force_compositing_mode(false), |
79 allow_webui_compositing(false), | 80 allow_webui_compositing(false), |
80 composite_to_texture_enabled(false), | 81 composite_to_texture_enabled(false), |
81 accelerated_layers_enabled(false), | 82 accelerated_layers_enabled(false), |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Enable the web audio API if requested on the command line. | 230 // Enable the web audio API if requested on the command line. |
230 settings->setWebAudioEnabled(webaudio_enabled); | 231 settings->setWebAudioEnabled(webaudio_enabled); |
231 | 232 |
232 // Enable experimental WebGL support if requested on command line | 233 // Enable experimental WebGL support if requested on command line |
233 // and support is compiled in. | 234 // and support is compiled in. |
234 settings->setExperimentalWebGLEnabled(experimental_webgl_enabled); | 235 settings->setExperimentalWebGLEnabled(experimental_webgl_enabled); |
235 | 236 |
236 // Disable GL multisampling if requested on command line. | 237 // Disable GL multisampling if requested on command line. |
237 settings->setOpenGLMultisamplingEnabled(gl_multisampling_enabled); | 238 settings->setOpenGLMultisamplingEnabled(gl_multisampling_enabled); |
238 | 239 |
| 240 // Enable privileged WebGL extensions for Chrome extensions or if requested |
| 241 // on command line. |
| 242 settings->setPrivilegedWebGLExtensionsEnabled( |
| 243 privileged_webgl_extensions_enabled); |
| 244 |
239 // Display colored borders around composited render layers if requested | 245 // Display colored borders around composited render layers if requested |
240 // on command line. | 246 // on command line. |
241 settings->setShowDebugBorders(show_composited_layer_borders); | 247 settings->setShowDebugBorders(show_composited_layer_borders); |
242 | 248 |
243 // Display an FPS indicator if requested on the command line. | 249 // Display an FPS indicator if requested on the command line. |
244 settings->setShowFPSCounter(show_fps_counter); | 250 settings->setShowFPSCounter(show_fps_counter); |
245 | 251 |
246 // Display the current compositor tree as overlay if requested on | 252 // Display the current compositor tree as overlay if requested on |
247 // the command line | 253 // the command line |
248 settings->setShowPlatformLayerTree(show_composited_layer_tree); | 254 settings->setShowPlatformLayerTree(show_composited_layer_tree); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 settings->setFullScreenEnabled(fullscreen_enabled); | 308 settings->setFullScreenEnabled(fullscreen_enabled); |
303 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); | 309 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); |
304 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); | 310 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); |
305 settings->setShouldPrintBackgrounds(should_print_backgrounds); | 311 settings->setShouldPrintBackgrounds(should_print_backgrounds); |
306 settings->setEnableScrollAnimator(enable_scroll_animator); | 312 settings->setEnableScrollAnimator(enable_scroll_animator); |
307 settings->setHixie76WebSocketProtocolEnabled( | 313 settings->setHixie76WebSocketProtocolEnabled( |
308 hixie76_websocket_protocol_enabled); | 314 hixie76_websocket_protocol_enabled); |
309 | 315 |
310 WebNetworkStateNotifier::setOnLine(is_online); | 316 WebNetworkStateNotifier::setOnLine(is_online); |
311 } | 317 } |
OLD | NEW |