Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: content/renderer/web_preferences.cc

Issue 23483005: [Android WebView] Wire up Blink's UseLegacyBackgroundSizeShorthandBehavior setting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 settings->setTextAutosizingFontScaleFactor(prefs.font_scale_factor); 328 settings->setTextAutosizingFontScaleFactor(prefs.font_scale_factor);
329 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom); 329 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom);
330 settings->setAutoZoomFocusedNodeToLegibleScale(true); 330 settings->setAutoZoomFocusedNodeToLegibleScale(true);
331 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled); 331 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled);
332 settings->setMediaPlaybackRequiresUserGesture( 332 settings->setMediaPlaybackRequiresUserGesture(
333 prefs.user_gesture_required_for_media_playback); 333 prefs.user_gesture_required_for_media_playback);
334 settings->setDefaultVideoPosterURL( 334 settings->setDefaultVideoPosterURL(
335 ASCIIToUTF16(prefs.default_video_poster_url.spec())); 335 ASCIIToUTF16(prefs.default_video_poster_url.spec()));
336 settings->setSupportDeprecatedTargetDensityDPI( 336 settings->setSupportDeprecatedTargetDensityDPI(
337 prefs.support_deprecated_target_density_dpi); 337 prefs.support_deprecated_target_density_dpi);
338 settings->setUseLegacyBackgroundSizeShorthandBehavior(
339 prefs.use_legacy_background_size_shorthand_behavior);
338 settings->setUseWideViewport(prefs.use_wide_viewport); 340 settings->setUseWideViewport(prefs.use_wide_viewport);
339 #endif 341 #endif
340 342
341 WebNetworkStateNotifier::setOnLine(prefs.is_online); 343 WebNetworkStateNotifier::setOnLine(prefs.is_online);
342 settings->setExperimentalWebSocketEnabled( 344 settings->setExperimentalWebSocketEnabled(
343 prefs.experimental_websocket_enabled); 345 prefs.experimental_websocket_enabled);
344 settings->setPinchVirtualViewportEnabled( 346 settings->setPinchVirtualViewportEnabled(
345 prefs.pinch_virtual_viewport_enabled); 347 prefs.pinch_virtual_viewport_enabled);
346 348
347 settings->setPinchOverlayScrollbarThickness( 349 settings->setPinchOverlayScrollbarThickness(
348 prefs.pinch_overlay_scrollbar_thickness); 350 prefs.pinch_overlay_scrollbar_thickness);
349 } 351 }
350 352
351 } // namespace content 353 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698