| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 prefs.should_respect_image_orientation); | 312 prefs.should_respect_image_orientation); |
| 313 | 313 |
| 314 settings->setUnsafePluginPastingEnabled(false); | 314 settings->setUnsafePluginPastingEnabled(false); |
| 315 settings->setEditingBehavior( | 315 settings->setEditingBehavior( |
| 316 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 316 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 317 | 317 |
| 318 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 318 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| 319 | 319 |
| 320 settings->setViewportEnabled(prefs.viewport_enabled); | 320 settings->setViewportEnabled(prefs.viewport_enabled); |
| 321 settings->setLoadWithOverviewMode(prefs.initialize_at_minimum_page_scale); | 321 settings->setLoadWithOverviewMode(prefs.initialize_at_minimum_page_scale); |
| 322 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled); |
| 323 settings->setMainFrameResizesAreOrientationChanges( |
| 324 prefs.main_frame_resizes_are_orientation_changes); |
| 322 | 325 |
| 323 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); | 326 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); |
| 324 | 327 |
| 325 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); | 328 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); |
| 326 | 329 |
| 327 settings->setSelectionIncludesAltImageText(true); | 330 settings->setSelectionIncludesAltImageText(true); |
| 328 | 331 |
| 329 #if defined(OS_ANDROID) | 332 #if defined(OS_ANDROID) |
| 330 settings->setAllowCustomScrollbarInMainFrame(false); | 333 settings->setAllowCustomScrollbarInMainFrame(false); |
| 331 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled); | 334 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 settings->setPinchVirtualViewportEnabled( | 369 settings->setPinchVirtualViewportEnabled( |
| 367 prefs.pinch_virtual_viewport_enabled); | 370 prefs.pinch_virtual_viewport_enabled); |
| 368 | 371 |
| 369 settings->setPinchOverlayScrollbarThickness( | 372 settings->setPinchOverlayScrollbarThickness( |
| 370 prefs.pinch_overlay_scrollbar_thickness); | 373 prefs.pinch_overlay_scrollbar_thickness); |
| 371 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 374 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 372 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 375 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
| 373 } | 376 } |
| 374 | 377 |
| 375 } // namespace content | 378 } // namespace content |
| OLD | NEW |