| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 enable_scroll_animator(false), | 114 enable_scroll_animator(false), |
| 115 visual_word_movement_enabled(false), | 115 visual_word_movement_enabled(false), |
| 116 css_sticky_position_enabled(false), | 116 css_sticky_position_enabled(false), |
| 117 css_shaders_enabled(false), | 117 css_shaders_enabled(false), |
| 118 css_variables_enabled(false), | 118 css_variables_enabled(false), |
| 119 css_grid_layout_enabled(false), | 119 css_grid_layout_enabled(false), |
| 120 touch_enabled(false), | 120 touch_enabled(false), |
| 121 device_supports_touch(false), | 121 device_supports_touch(false), |
| 122 device_supports_mouse(true), | 122 device_supports_mouse(true), |
| 123 touch_adjustment_enabled(true), | 123 touch_adjustment_enabled(true), |
| 124 touch_drag_drop_enabled(false), |
| 124 default_tile_width(256), | 125 default_tile_width(256), |
| 125 default_tile_height(256), | 126 default_tile_height(256), |
| 126 max_untiled_layer_width(512), | 127 max_untiled_layer_width(512), |
| 127 max_untiled_layer_height(512), | 128 max_untiled_layer_height(512), |
| 128 fixed_position_creates_stacking_context(false), | 129 fixed_position_creates_stacking_context(false), |
| 129 sync_xhr_in_documents_enabled(true), | 130 sync_xhr_in_documents_enabled(true), |
| 130 deferred_image_decoding_enabled(false), | 131 deferred_image_decoding_enabled(false), |
| 131 should_respect_image_orientation(false), | 132 should_respect_image_orientation(false), |
| 132 number_of_cpu_cores(1), | 133 number_of_cpu_cores(1), |
| 133 #if defined(OS_MACOSX) | 134 #if defined(OS_MACOSX) |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 461 |
| 461 settings->setCSSStickyPositionEnabled(css_sticky_position_enabled); | 462 settings->setCSSStickyPositionEnabled(css_sticky_position_enabled); |
| 462 settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled); | 463 settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled); |
| 463 settings->setExperimentalCSSVariablesEnabled(css_variables_enabled); | 464 settings->setExperimentalCSSVariablesEnabled(css_variables_enabled); |
| 464 settings->setExperimentalCSSGridLayoutEnabled(css_grid_layout_enabled); | 465 settings->setExperimentalCSSGridLayoutEnabled(css_grid_layout_enabled); |
| 465 | 466 |
| 466 WebRuntimeFeatures::enableTouch(touch_enabled); | 467 WebRuntimeFeatures::enableTouch(touch_enabled); |
| 467 settings->setDeviceSupportsTouch(device_supports_touch); | 468 settings->setDeviceSupportsTouch(device_supports_touch); |
| 468 settings->setDeviceSupportsMouse(device_supports_mouse); | 469 settings->setDeviceSupportsMouse(device_supports_mouse); |
| 469 settings->setEnableTouchAdjustment(touch_adjustment_enabled); | 470 settings->setEnableTouchAdjustment(touch_adjustment_enabled); |
| 471 settings->setTouchDragDropEnabled(touch_drag_drop_enabled); |
| 470 | 472 |
| 471 settings->setDefaultTileSize( | 473 settings->setDefaultTileSize( |
| 472 WebSize(default_tile_width, default_tile_height)); | 474 WebSize(default_tile_width, default_tile_height)); |
| 473 settings->setMaxUntiledLayerSize( | 475 settings->setMaxUntiledLayerSize( |
| 474 WebSize(max_untiled_layer_width, max_untiled_layer_height)); | 476 WebSize(max_untiled_layer_width, max_untiled_layer_height)); |
| 475 | 477 |
| 476 settings->setFixedPositionCreatesStackingContext( | 478 settings->setFixedPositionCreatesStackingContext( |
| 477 fixed_position_creates_stacking_context); | 479 fixed_position_creates_stacking_context); |
| 478 | 480 |
| 479 settings->setDeferredImageDecodingEnabled(deferred_image_decoding_enabled); | 481 settings->setDeferredImageDecodingEnabled(deferred_image_decoding_enabled); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 510 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); | 512 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); |
| 511 COMPILE_ASSERT_MATCHING_ENUMS( | 513 COMPILE_ASSERT_MATCHING_ENUMS( |
| 512 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); | 514 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); |
| 513 COMPILE_ASSERT_MATCHING_ENUMS( | 515 COMPILE_ASSERT_MATCHING_ENUMS( |
| 514 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); | 516 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); |
| 515 COMPILE_ASSERT_MATCHING_ENUMS( | 517 COMPILE_ASSERT_MATCHING_ENUMS( |
| 516 WebPreferences::EDITING_BEHAVIOR_ANDROID, | 518 WebPreferences::EDITING_BEHAVIOR_ANDROID, |
| 517 WebSettings::EditingBehaviorAndroid); | 519 WebSettings::EditingBehaviorAndroid); |
| 518 | 520 |
| 519 } // namespace webkit_glue | 521 } // namespace webkit_glue |
| OLD | NEW |