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

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

Issue 139853011: [Cleanup] Removing changes associated with visualWordMovement since it is never used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « content/public/common/content_switches.cc ('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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 settings->setFullScreenEnabled(prefs.fullscreen_enabled); 285 settings->setFullScreenEnabled(prefs.fullscreen_enabled);
286 settings->setAllowDisplayOfInsecureContent( 286 settings->setAllowDisplayOfInsecureContent(
287 prefs.allow_displaying_insecure_content); 287 prefs.allow_displaying_insecure_content);
288 settings->setAllowRunningOfInsecureContent( 288 settings->setAllowRunningOfInsecureContent(
289 prefs.allow_running_insecure_content); 289 prefs.allow_running_insecure_content);
290 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); 290 settings->setPasswordEchoEnabled(prefs.password_echo_enabled);
291 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); 291 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds);
292 settings->setShouldClearDocumentBackground( 292 settings->setShouldClearDocumentBackground(
293 prefs.should_clear_document_background); 293 prefs.should_clear_document_background);
294 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); 294 settings->setEnableScrollAnimator(prefs.enable_scroll_animator);
295 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled);
296 295
297 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); 296 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled);
298 297
299 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); 298 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled);
300 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 299 WebRuntimeFeatures::enableTouch(prefs.touch_enabled);
301 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); 300 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points);
302 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 301 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
303 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 302 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
304 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 303 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
305 304
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 settings->setPinchVirtualViewportEnabled( 372 settings->setPinchVirtualViewportEnabled(
374 prefs.pinch_virtual_viewport_enabled); 373 prefs.pinch_virtual_viewport_enabled);
375 374
376 settings->setPinchOverlayScrollbarThickness( 375 settings->setPinchOverlayScrollbarThickness(
377 prefs.pinch_overlay_scrollbar_thickness); 376 prefs.pinch_overlay_scrollbar_thickness);
378 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 377 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
379 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); 378 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing);
380 } 379 }
381 380
382 } // namespace content 381 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698