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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 settings->setShouldRespectImageOrientation( | 305 settings->setShouldRespectImageOrientation( |
306 prefs.should_respect_image_orientation); | 306 prefs.should_respect_image_orientation); |
307 | 307 |
308 settings->setUnsafePluginPastingEnabled(false); | 308 settings->setUnsafePluginPastingEnabled(false); |
309 settings->setEditingBehavior( | 309 settings->setEditingBehavior( |
310 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 310 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
311 | 311 |
312 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 312 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
313 | 313 |
314 settings->setViewportEnabled(prefs.viewport_enabled); | 314 settings->setViewportEnabled(prefs.viewport_enabled); |
| 315 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled); |
| 316 settings->setScaleViewportOnResize(prefs.scale_viewport_on_resize); |
315 settings->setInitializeAtMinimumPageScale( | 317 settings->setInitializeAtMinimumPageScale( |
316 prefs.initialize_at_minimum_page_scale); | 318 prefs.initialize_at_minimum_page_scale); |
317 | 319 |
318 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); | 320 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); |
319 | 321 |
320 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); | 322 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); |
321 | 323 |
322 settings->setSelectionIncludesAltImageText(true); | 324 settings->setSelectionIncludesAltImageText(true); |
323 | 325 |
324 #if defined(OS_ANDROID) | 326 #if defined(OS_ANDROID) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 settings->setPinchVirtualViewportEnabled( | 363 settings->setPinchVirtualViewportEnabled( |
362 prefs.pinch_virtual_viewport_enabled); | 364 prefs.pinch_virtual_viewport_enabled); |
363 | 365 |
364 settings->setPinchOverlayScrollbarThickness( | 366 settings->setPinchOverlayScrollbarThickness( |
365 prefs.pinch_overlay_scrollbar_thickness); | 367 prefs.pinch_overlay_scrollbar_thickness); |
366 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 368 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
367 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 369 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
368 } | 370 } |
369 | 371 |
370 } // namespace content | 372 } // namespace content |
OLD | NEW |