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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // ChromeClient::tabsToLinks which is part of the glue code. | 281 // ChromeClient::tabsToLinks which is part of the glue code. |
282 web_view->setTabsToLinks(prefs.tabs_to_links); | 282 web_view->setTabsToLinks(prefs.tabs_to_links); |
283 | 283 |
284 settings->setFullScreenEnabled(prefs.fullscreen_enabled); | 284 settings->setFullScreenEnabled(prefs.fullscreen_enabled); |
285 settings->setAllowDisplayOfInsecureContent( | 285 settings->setAllowDisplayOfInsecureContent( |
286 prefs.allow_displaying_insecure_content); | 286 prefs.allow_displaying_insecure_content); |
287 settings->setAllowRunningOfInsecureContent( | 287 settings->setAllowRunningOfInsecureContent( |
288 prefs.allow_running_insecure_content); | 288 prefs.allow_running_insecure_content); |
289 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 289 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
290 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 290 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
| 291 settings->setShouldClearDocumentBackground( |
| 292 prefs.should_clear_document_background); |
291 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 293 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
292 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); | 294 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); |
293 | 295 |
294 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); | 296 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); |
295 | 297 |
296 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); | 298 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); |
297 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 299 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
298 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 300 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
299 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 301 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
300 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 302 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 settings->setPinchVirtualViewportEnabled( | 372 settings->setPinchVirtualViewportEnabled( |
371 prefs.pinch_virtual_viewport_enabled); | 373 prefs.pinch_virtual_viewport_enabled); |
372 | 374 |
373 settings->setPinchOverlayScrollbarThickness( | 375 settings->setPinchOverlayScrollbarThickness( |
374 prefs.pinch_overlay_scrollbar_thickness); | 376 prefs.pinch_overlay_scrollbar_thickness); |
375 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 377 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
376 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 378 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
377 } | 379 } |
378 | 380 |
379 } // namespace content | 381 } // namespace content |
OLD | NEW |