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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 prefs.clobber_user_agent_initial_scale_quirk); | 343 prefs.clobber_user_agent_initial_scale_quirk); |
344 settings->setIgnoreMainFrameOverflowHiddenQuirk( | 344 settings->setIgnoreMainFrameOverflowHiddenQuirk( |
345 prefs.ignore_main_frame_overflow_hidden_quirk); | 345 prefs.ignore_main_frame_overflow_hidden_quirk); |
346 settings->setReportScreenSizeInPhysicalPixelsQuirk( | 346 settings->setReportScreenSizeInPhysicalPixelsQuirk( |
347 prefs.report_screen_size_in_physical_pixels_quirk); | 347 prefs.report_screen_size_in_physical_pixels_quirk); |
348 settings->setMainFrameClipsContent(false); | 348 settings->setMainFrameClipsContent(false); |
349 settings->setShrinksStandaloneImagesToFit(false); | 349 settings->setShrinksStandaloneImagesToFit(false); |
350 #endif | 350 #endif |
351 | 351 |
352 WebNetworkStateNotifier::setOnLine(prefs.is_online); | 352 WebNetworkStateNotifier::setOnLine(prefs.is_online); |
353 settings->setExperimentalWebSocketEnabled( | |
354 prefs.experimental_websocket_enabled); | |
355 settings->setPinchVirtualViewportEnabled( | 353 settings->setPinchVirtualViewportEnabled( |
356 prefs.pinch_virtual_viewport_enabled); | 354 prefs.pinch_virtual_viewport_enabled); |
357 | 355 |
358 settings->setPinchOverlayScrollbarThickness( | 356 settings->setPinchOverlayScrollbarThickness( |
359 prefs.pinch_overlay_scrollbar_thickness); | 357 prefs.pinch_overlay_scrollbar_thickness); |
360 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 358 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
361 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 359 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
362 } | 360 } |
363 | 361 |
364 } // namespace content | 362 } // namespace content |
OLD | NEW |