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/WebKit/chromium/public/WebNetworkStateNotifi
er.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 asynchronous_spell_checking_enabled(true), | 90 asynchronous_spell_checking_enabled(true), |
91 unified_textchecker_enabled(false), | 91 unified_textchecker_enabled(false), |
92 accelerated_compositing_enabled(false), | 92 accelerated_compositing_enabled(false), |
93 force_compositing_mode(false), | 93 force_compositing_mode(false), |
94 fixed_position_compositing_enabled(false), | 94 fixed_position_compositing_enabled(false), |
95 accelerated_compositing_for_3d_transforms_enabled(false), | 95 accelerated_compositing_for_3d_transforms_enabled(false), |
96 accelerated_compositing_for_animation_enabled(false), | 96 accelerated_compositing_for_animation_enabled(false), |
97 accelerated_compositing_for_video_enabled(false), | 97 accelerated_compositing_for_video_enabled(false), |
98 accelerated_2d_canvas_enabled(false), | 98 accelerated_2d_canvas_enabled(false), |
99 deferred_2d_canvas_enabled(false), | 99 deferred_2d_canvas_enabled(false), |
| 100 antialiased_2d_canvas_disabled(false), |
100 accelerated_painting_enabled(false), | 101 accelerated_painting_enabled(false), |
101 accelerated_filters_enabled(false), | 102 accelerated_filters_enabled(false), |
102 gesture_tap_highlight_enabled(false), | 103 gesture_tap_highlight_enabled(false), |
103 accelerated_compositing_for_plugins_enabled(false), | 104 accelerated_compositing_for_plugins_enabled(false), |
104 memory_info_enabled(false), | 105 memory_info_enabled(false), |
105 fullscreen_enabled(false), | 106 fullscreen_enabled(false), |
106 allow_displaying_insecure_content(true), | 107 allow_displaying_insecure_content(true), |
107 allow_running_insecure_content(false), | 108 allow_running_insecure_content(false), |
108 password_echo_enabled(false), | 109 password_echo_enabled(false), |
109 should_print_backgrounds(false), | 110 should_print_backgrounds(false), |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // on the command line. | 382 // on the command line. |
382 settings->setAcceleratedCompositingForFixedPositionEnabled( | 383 settings->setAcceleratedCompositingForFixedPositionEnabled( |
383 fixed_position_compositing_enabled); | 384 fixed_position_compositing_enabled); |
384 | 385 |
385 // Enable gpu-accelerated 2d canvas if requested on the command line. | 386 // Enable gpu-accelerated 2d canvas if requested on the command line. |
386 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); | 387 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); |
387 | 388 |
388 // Enable deferred 2d canvas if requested on the command line. | 389 // Enable deferred 2d canvas if requested on the command line. |
389 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled); | 390 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled); |
390 | 391 |
| 392 // Disable antialiasing for 2d canvas if requested on the command line. |
| 393 settings->setAntialiased2dCanvasEnabled(!antialiased_2d_canvas_disabled); |
| 394 |
391 // Enable gpu-accelerated painting if requested on the command line. | 395 // Enable gpu-accelerated painting if requested on the command line. |
392 settings->setAcceleratedPaintingEnabled(accelerated_painting_enabled); | 396 settings->setAcceleratedPaintingEnabled(accelerated_painting_enabled); |
393 | 397 |
394 // Enable gpu-accelerated filters if requested on the command line. | 398 // Enable gpu-accelerated filters if requested on the command line. |
395 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); | 399 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); |
396 | 400 |
397 // Enable gesture tap highlight if requested on the command line. | 401 // Enable gesture tap highlight if requested on the command line. |
398 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled); | 402 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled); |
399 | 403 |
400 // Enabling accelerated layers from the command line enabled accelerated | 404 // Enabling accelerated layers from the command line enabled accelerated |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 mismatching_enums) | 490 mismatching_enums) |
487 | 491 |
488 COMPILE_ASSERT_MATCHING_ENUMS( | 492 COMPILE_ASSERT_MATCHING_ENUMS( |
489 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); | 493 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); |
490 COMPILE_ASSERT_MATCHING_ENUMS( | 494 COMPILE_ASSERT_MATCHING_ENUMS( |
491 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); | 495 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); |
492 COMPILE_ASSERT_MATCHING_ENUMS( | 496 COMPILE_ASSERT_MATCHING_ENUMS( |
493 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); | 497 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); |
494 | 498 |
495 } // namespace webkit_glue | 499 } // namespace webkit_glue |
OLD | NEW |