| 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 #include "webkit/glue/webpreferences.h" | 5 #include "webkit/glue/webpreferences.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 experimental_webgl_enabled(false), | 75 experimental_webgl_enabled(false), |
| 76 flash_3d_enabled(true), | 76 flash_3d_enabled(true), |
| 77 flash_stage3d_enabled(false), | 77 flash_stage3d_enabled(false), |
| 78 gl_multisampling_enabled(true), | 78 gl_multisampling_enabled(true), |
| 79 privileged_webgl_extensions_enabled(false), | 79 privileged_webgl_extensions_enabled(false), |
| 80 webgl_errors_to_console_enabled(true), | 80 webgl_errors_to_console_enabled(true), |
| 81 show_composited_layer_borders(false), | 81 show_composited_layer_borders(false), |
| 82 show_composited_layer_tree(false), | 82 show_composited_layer_tree(false), |
| 83 show_fps_counter(false), | 83 show_fps_counter(false), |
| 84 accelerated_compositing_for_overflow_scroll_enabled(false), | 84 accelerated_compositing_for_overflow_scroll_enabled(false), |
| 85 accelerated_compositing_for_scrollable_frames_enabled(false), |
| 85 show_paint_rects(false), | 86 show_paint_rects(false), |
| 86 render_vsync_enabled(true), | 87 render_vsync_enabled(true), |
| 87 asynchronous_spell_checking_enabled(true), | 88 asynchronous_spell_checking_enabled(true), |
| 88 unified_textchecker_enabled(false), | 89 unified_textchecker_enabled(false), |
| 89 accelerated_compositing_enabled(false), | 90 accelerated_compositing_enabled(false), |
| 90 force_compositing_mode(false), | 91 force_compositing_mode(false), |
| 91 fixed_position_compositing_enabled(false), | 92 fixed_position_compositing_enabled(false), |
| 92 accelerated_compositing_for_3d_transforms_enabled(false), | 93 accelerated_compositing_for_3d_transforms_enabled(false), |
| 93 accelerated_compositing_for_animation_enabled(false), | 94 accelerated_compositing_for_animation_enabled(false), |
| 94 accelerated_compositing_for_video_enabled(false), | 95 accelerated_compositing_for_video_enabled(false), |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // on command line. | 338 // on command line. |
| 338 settings->setShowDebugBorders(show_composited_layer_borders); | 339 settings->setShowDebugBorders(show_composited_layer_borders); |
| 339 | 340 |
| 340 // Display an FPS indicator if requested on the command line. | 341 // Display an FPS indicator if requested on the command line. |
| 341 settings->setShowFPSCounter(show_fps_counter); | 342 settings->setShowFPSCounter(show_fps_counter); |
| 342 | 343 |
| 343 // Enables accelerated compositing for overflow scroll. | 344 // Enables accelerated compositing for overflow scroll. |
| 344 settings->setAcceleratedCompositingForOverflowScrollEnabled( | 345 settings->setAcceleratedCompositingForOverflowScrollEnabled( |
| 345 accelerated_compositing_for_overflow_scroll_enabled); | 346 accelerated_compositing_for_overflow_scroll_enabled); |
| 346 | 347 |
| 348 // Enables accelerated compositing for scrollable frames if requested on |
| 349 // command line. |
| 350 settings->setAcceleratedCompositingForScrollableFramesEnabled( |
| 351 accelerated_compositing_for_scrollable_frames_enabled); |
| 352 |
| 347 // Display the current compositor tree as overlay if requested on | 353 // Display the current compositor tree as overlay if requested on |
| 348 // the command line | 354 // the command line |
| 349 settings->setShowPlatformLayerTree(show_composited_layer_tree); | 355 settings->setShowPlatformLayerTree(show_composited_layer_tree); |
| 350 | 356 |
| 351 // Display visualization of what has changed on the screen using an | 357 // Display visualization of what has changed on the screen using an |
| 352 // overlay of rects, if requested on the command line. | 358 // overlay of rects, if requested on the command line. |
| 353 settings->setShowPaintRects(show_paint_rects); | 359 settings->setShowPaintRects(show_paint_rects); |
| 354 | 360 |
| 355 // Set whether to throttle framerate to Vsync. | 361 // Set whether to throttle framerate to Vsync. |
| 356 settings->setRenderVSyncEnabled(render_vsync_enabled); | 362 settings->setRenderVSyncEnabled(render_vsync_enabled); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 settings->setDoubleTapToZoomEnabled(true); | 456 settings->setDoubleTapToZoomEnabled(true); |
| 451 settings->setMediaPlaybackRequiresUserGesture( | 457 settings->setMediaPlaybackRequiresUserGesture( |
| 452 user_gesture_required_for_media_playback); | 458 user_gesture_required_for_media_playback); |
| 453 settings->setSupportsMultipleWindows(supports_multiple_windows); | 459 settings->setSupportsMultipleWindows(supports_multiple_windows); |
| 454 #endif | 460 #endif |
| 455 | 461 |
| 456 WebNetworkStateNotifier::setOnLine(is_online); | 462 WebNetworkStateNotifier::setOnLine(is_online); |
| 457 } | 463 } |
| 458 | 464 |
| 459 } // namespace webkit_glue | 465 } // namespace webkit_glue |
| OLD | NEW |