| 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/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 gl_multisampling_enabled(true), | 81 gl_multisampling_enabled(true), |
| 82 privileged_webgl_extensions_enabled(false), | 82 privileged_webgl_extensions_enabled(false), |
| 83 webgl_errors_to_console_enabled(true), | 83 webgl_errors_to_console_enabled(true), |
| 84 show_composited_layer_borders(false), | 84 show_composited_layer_borders(false), |
| 85 show_composited_layer_tree(false), | 85 show_composited_layer_tree(false), |
| 86 show_fps_counter(false), | 86 show_fps_counter(false), |
| 87 accelerated_compositing_for_overflow_scroll_enabled(false), | 87 accelerated_compositing_for_overflow_scroll_enabled(false), |
| 88 accelerated_compositing_for_scrollable_frames_enabled(false), | 88 accelerated_compositing_for_scrollable_frames_enabled(false), |
| 89 composited_scrolling_for_frames_enabled(false), | 89 composited_scrolling_for_frames_enabled(false), |
| 90 mock_scrollbars_enabled(false), | 90 mock_scrollbars_enabled(false), |
| 91 threaded_html_parser(false), |
| 91 show_paint_rects(false), | 92 show_paint_rects(false), |
| 92 render_vsync_enabled(true), | 93 render_vsync_enabled(true), |
| 93 asynchronous_spell_checking_enabled(true), | 94 asynchronous_spell_checking_enabled(true), |
| 94 unified_textchecker_enabled(false), | 95 unified_textchecker_enabled(false), |
| 95 accelerated_compositing_enabled(false), | 96 accelerated_compositing_enabled(false), |
| 96 force_compositing_mode(false), | 97 force_compositing_mode(false), |
| 97 accelerated_compositing_for_3d_transforms_enabled(false), | 98 accelerated_compositing_for_3d_transforms_enabled(false), |
| 98 accelerated_compositing_for_animation_enabled(false), | 99 accelerated_compositing_for_animation_enabled(false), |
| 99 accelerated_compositing_for_video_enabled(false), | 100 accelerated_compositing_for_video_enabled(false), |
| 100 accelerated_2d_canvas_enabled(false), | 101 accelerated_2d_canvas_enabled(false), |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 settings->setAcceleratedCompositingForScrollableFramesEnabled( | 371 settings->setAcceleratedCompositingForScrollableFramesEnabled( |
| 371 accelerated_compositing_for_scrollable_frames_enabled); | 372 accelerated_compositing_for_scrollable_frames_enabled); |
| 372 | 373 |
| 373 // Enables composited scrolling for frames if requested on command line. | 374 // Enables composited scrolling for frames if requested on command line. |
| 374 settings->setCompositedScrollingForFramesEnabled( | 375 settings->setCompositedScrollingForFramesEnabled( |
| 375 composited_scrolling_for_frames_enabled); | 376 composited_scrolling_for_frames_enabled); |
| 376 | 377 |
| 377 // Uses the mock theme engine for scrollbars. | 378 // Uses the mock theme engine for scrollbars. |
| 378 settings->setMockScrollbarsEnabled(mock_scrollbars_enabled); | 379 settings->setMockScrollbarsEnabled(mock_scrollbars_enabled); |
| 379 | 380 |
| 381 settings->setThreadedHTMLParser(threaded_html_parser); |
| 382 |
| 380 // Display the current compositor tree as overlay if requested on | 383 // Display the current compositor tree as overlay if requested on |
| 381 // the command line | 384 // the command line |
| 382 settings->setShowPlatformLayerTree(show_composited_layer_tree); | 385 settings->setShowPlatformLayerTree(show_composited_layer_tree); |
| 383 | 386 |
| 384 // Display visualization of what has changed on the screen using an | 387 // Display visualization of what has changed on the screen using an |
| 385 // overlay of rects, if requested on the command line. | 388 // overlay of rects, if requested on the command line. |
| 386 settings->setShowPaintRects(show_paint_rects); | 389 settings->setShowPaintRects(show_paint_rects); |
| 387 | 390 |
| 388 // Record rendering stats for benchmarks. | 391 // Record rendering stats for benchmarks. |
| 389 settings->setRecordRenderingStats(record_rendering_stats); | 392 settings->setRecordRenderingStats(record_rendering_stats); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); | 510 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); |
| 508 COMPILE_ASSERT_MATCHING_ENUMS( | 511 COMPILE_ASSERT_MATCHING_ENUMS( |
| 509 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); | 512 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); |
| 510 COMPILE_ASSERT_MATCHING_ENUMS( | 513 COMPILE_ASSERT_MATCHING_ENUMS( |
| 511 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); | 514 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); |
| 512 COMPILE_ASSERT_MATCHING_ENUMS( | 515 COMPILE_ASSERT_MATCHING_ENUMS( |
| 513 WebPreferences::EDITING_BEHAVIOR_ANDROID, | 516 WebPreferences::EDITING_BEHAVIOR_ANDROID, |
| 514 WebSettings::EditingBehaviorAndroid); | 517 WebSettings::EditingBehaviorAndroid); |
| 515 | 518 |
| 516 } // namespace webkit_glue | 519 } // namespace webkit_glue |
| OLD | NEW |