Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 threaded_html_parser(true), | 86 threaded_html_parser(true), |
| 87 show_paint_rects(false), | 87 show_paint_rects(false), |
| 88 asynchronous_spell_checking_enabled(true), | 88 asynchronous_spell_checking_enabled(true), |
| 89 unified_textchecker_enabled(false), | 89 unified_textchecker_enabled(false), |
| 90 accelerated_compositing_enabled(false), | 90 accelerated_compositing_enabled(false), |
| 91 force_compositing_mode(false), | 91 force_compositing_mode(false), |
| 92 accelerated_compositing_for_3d_transforms_enabled(false), | 92 accelerated_compositing_for_3d_transforms_enabled(false), |
| 93 accelerated_compositing_for_animation_enabled(false), | 93 accelerated_compositing_for_animation_enabled(false), |
| 94 accelerated_compositing_for_video_enabled(false), | 94 accelerated_compositing_for_video_enabled(false), |
| 95 accelerated_2d_canvas_enabled(false), | 95 accelerated_2d_canvas_enabled(false), |
| 96 deferred_2d_canvas_enabled(false), | |
| 97 antialiased_2d_canvas_disabled(false), | 96 antialiased_2d_canvas_disabled(false), |
| 98 accelerated_filters_enabled(false), | 97 accelerated_filters_enabled(false), |
| 99 gesture_tap_highlight_enabled(false), | 98 gesture_tap_highlight_enabled(false), |
| 100 accelerated_compositing_for_plugins_enabled(false), | 99 accelerated_compositing_for_plugins_enabled(false), |
| 101 memory_info_enabled(false), | 100 memory_info_enabled(false), |
| 102 fullscreen_enabled(false), | 101 fullscreen_enabled(false), |
| 103 allow_displaying_insecure_content(true), | 102 allow_displaying_insecure_content(true), |
| 104 allow_running_insecure_content(false), | 103 allow_running_insecure_content(false), |
| 105 password_echo_enabled(false), | 104 password_echo_enabled(false), |
| 106 should_print_backgrounds(false), | 105 should_print_backgrounds(false), |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 366 // overlay of rects, if requested on the command line. | 365 // overlay of rects, if requested on the command line. |
| 367 settings->setShowPaintRects(show_paint_rects); | 366 settings->setShowPaintRects(show_paint_rects); |
| 368 | 367 |
| 369 // Enable gpu-accelerated compositing if requested on the command line. | 368 // Enable gpu-accelerated compositing if requested on the command line. |
| 370 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); | 369 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); |
| 371 | 370 |
| 372 // Enable gpu-accelerated 2d canvas if requested on the command line. | 371 // Enable gpu-accelerated 2d canvas if requested on the command line. |
| 373 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); | 372 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); |
| 374 | 373 |
| 375 // Enable deferred 2d canvas if requested on the command line. | 374 // Enable deferred 2d canvas if requested on the command line. |
| 376 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled); | 375 settings->setDeferred2dCanvasEnabled(true); |
|
jamesr
2013/03/18 01:20:54
Are you planning to remove this value from WebSett
Justin Novosad
2013/03/20 20:00:55
Yes. In http://trac.webkit.org/changeset/146351 th
| |
| 377 | 376 |
| 378 // Disable antialiasing for 2d canvas if requested on the command line. | 377 // Disable antialiasing for 2d canvas if requested on the command line. |
| 379 settings->setAntialiased2dCanvasEnabled(!antialiased_2d_canvas_disabled); | 378 settings->setAntialiased2dCanvasEnabled(!antialiased_2d_canvas_disabled); |
| 380 | 379 |
| 381 // Enable gpu-accelerated filters if requested on the command line. | 380 // Enable gpu-accelerated filters if requested on the command line. |
| 382 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); | 381 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); |
| 383 | 382 |
| 384 // Enable gesture tap highlight if requested on the command line. | 383 // Enable gesture tap highlight if requested on the command line. |
| 385 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled); | 384 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled); |
| 386 | 385 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 476 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); | 475 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); |
| 477 COMPILE_ASSERT_MATCHING_ENUMS( | 476 COMPILE_ASSERT_MATCHING_ENUMS( |
| 478 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); | 477 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); |
| 479 COMPILE_ASSERT_MATCHING_ENUMS( | 478 COMPILE_ASSERT_MATCHING_ENUMS( |
| 480 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); | 479 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); |
| 481 COMPILE_ASSERT_MATCHING_ENUMS( | 480 COMPILE_ASSERT_MATCHING_ENUMS( |
| 482 WebPreferences::EDITING_BEHAVIOR_ANDROID, | 481 WebPreferences::EDITING_BEHAVIOR_ANDROID, |
| 483 WebSettings::EditingBehaviorAndroid); | 482 WebSettings::EditingBehaviorAndroid); |
| 484 | 483 |
| 485 } // namespace webkit_glue | 484 } // namespace webkit_glue |
| OLD | NEW |