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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 prefs.allow_running_insecure_content); | 291 prefs.allow_running_insecure_content); |
292 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 292 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
293 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 293 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
294 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 294 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
295 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); | 295 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); |
296 | 296 |
297 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); | 297 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); |
298 | 298 |
299 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); | 299 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); |
300 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 300 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
| 301 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
301 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 302 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
302 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 303 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
303 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 304 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
304 | 305 |
305 settings->setFixedPositionCreatesStackingContext( | 306 settings->setFixedPositionCreatesStackingContext( |
306 prefs.fixed_position_creates_stacking_context); | 307 prefs.fixed_position_creates_stacking_context); |
307 | 308 |
308 settings->setDeferredImageDecodingEnabled( | 309 settings->setDeferredImageDecodingEnabled( |
309 prefs.deferred_image_decoding_enabled); | 310 prefs.deferred_image_decoding_enabled); |
310 settings->setShouldRespectImageOrientation( | 311 settings->setShouldRespectImageOrientation( |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 settings->setPinchVirtualViewportEnabled( | 367 settings->setPinchVirtualViewportEnabled( |
367 prefs.pinch_virtual_viewport_enabled); | 368 prefs.pinch_virtual_viewport_enabled); |
368 | 369 |
369 settings->setPinchOverlayScrollbarThickness( | 370 settings->setPinchOverlayScrollbarThickness( |
370 prefs.pinch_overlay_scrollbar_thickness); | 371 prefs.pinch_overlay_scrollbar_thickness); |
371 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 372 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
372 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 373 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
373 } | 374 } |
374 | 375 |
375 } // namespace content | 376 } // namespace content |
OLD | NEW |