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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 WebNetworkStateNotifier::setOnLine(prefs.is_online); | 354 WebNetworkStateNotifier::setOnLine(prefs.is_online); |
355 settings->setExperimentalWebSocketEnabled( | 355 settings->setExperimentalWebSocketEnabled( |
356 prefs.experimental_websocket_enabled); | 356 prefs.experimental_websocket_enabled); |
357 settings->setPinchVirtualViewportEnabled( | 357 settings->setPinchVirtualViewportEnabled( |
358 prefs.pinch_virtual_viewport_enabled); | 358 prefs.pinch_virtual_viewport_enabled); |
359 | 359 |
360 settings->setPinchOverlayScrollbarThickness( | 360 settings->setPinchOverlayScrollbarThickness( |
361 prefs.pinch_overlay_scrollbar_thickness); | 361 prefs.pinch_overlay_scrollbar_thickness); |
362 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 362 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 363 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
363 } | 364 } |
364 | 365 |
365 } // namespace content | 366 } // namespace content |
OLD | NEW |