| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/public/renderer/web_preferences.h" | 5 #include "content/public/renderer/web_preferences.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
| 9 #include "third_party/WebKit/public/platform/WebURL.h" | 9 #include "third_party/WebKit/public/platform/WebURL.h" |
| 10 #include "third_party/WebKit/public/web/WebKit.h" | 10 #include "third_party/WebKit/public/web/WebKit.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 settings->setFullScreenEnabled(prefs.fullscreen_enabled); | 282 settings->setFullScreenEnabled(prefs.fullscreen_enabled); |
| 283 settings->setAllowDisplayOfInsecureContent( | 283 settings->setAllowDisplayOfInsecureContent( |
| 284 prefs.allow_displaying_insecure_content); | 284 prefs.allow_displaying_insecure_content); |
| 285 settings->setAllowRunningOfInsecureContent( | 285 settings->setAllowRunningOfInsecureContent( |
| 286 prefs.allow_running_insecure_content); | 286 prefs.allow_running_insecure_content); |
| 287 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 287 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
| 288 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 288 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
| 289 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 289 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
| 290 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); | 290 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); |
| 291 | 291 |
| 292 settings->setCSSStickyPositionEnabled(prefs.css_sticky_position_enabled); | |
| 293 settings->setExperimentalCSSCustomFilterEnabled(prefs.css_shaders_enabled); | |
| 294 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); | 292 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); |
| 295 | 293 |
| 296 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); | 294 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); |
| 297 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 295 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
| 298 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 296 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 299 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 297 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 300 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 298 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| 301 | 299 |
| 302 settings->setFixedPositionCreatesStackingContext( | 300 settings->setFixedPositionCreatesStackingContext( |
| 303 prefs.fixed_position_creates_stacking_context); | 301 prefs.fixed_position_creates_stacking_context); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 settings->setPinchVirtualViewportEnabled( | 355 settings->setPinchVirtualViewportEnabled( |
| 358 prefs.pinch_virtual_viewport_enabled); | 356 prefs.pinch_virtual_viewport_enabled); |
| 359 | 357 |
| 360 settings->setPinchOverlayScrollbarThickness( | 358 settings->setPinchOverlayScrollbarThickness( |
| 361 prefs.pinch_overlay_scrollbar_thickness); | 359 prefs.pinch_overlay_scrollbar_thickness); |
| 362 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 360 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 363 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 361 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
| 364 } | 362 } |
| 365 | 363 |
| 366 } // namespace content | 364 } // namespace content |
| OLD | NEW |