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

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 15898003: Remove touch_drag_drop web preference. It was added in r184242 for tests to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/glue/webpreferences.h" 5 #include "webkit/glue/webpreferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 enable_scroll_animator(false), 98 enable_scroll_animator(false),
99 visual_word_movement_enabled(false), 99 visual_word_movement_enabled(false),
100 css_sticky_position_enabled(false), 100 css_sticky_position_enabled(false),
101 css_shaders_enabled(false), 101 css_shaders_enabled(false),
102 css_grid_layout_enabled(false), 102 css_grid_layout_enabled(false),
103 lazy_layout_enabled(false), 103 lazy_layout_enabled(false),
104 touch_enabled(false), 104 touch_enabled(false),
105 device_supports_touch(false), 105 device_supports_touch(false),
106 device_supports_mouse(true), 106 device_supports_mouse(true),
107 touch_adjustment_enabled(true), 107 touch_adjustment_enabled(true),
108 touch_drag_drop_enabled(false),
109 fixed_position_creates_stacking_context(false), 108 fixed_position_creates_stacking_context(false),
110 sync_xhr_in_documents_enabled(true), 109 sync_xhr_in_documents_enabled(true),
111 deferred_image_decoding_enabled(false), 110 deferred_image_decoding_enabled(false),
112 should_respect_image_orientation(false), 111 should_respect_image_orientation(false),
113 number_of_cpu_cores(1), 112 number_of_cpu_cores(1),
114 #if defined(OS_MACOSX) 113 #if defined(OS_MACOSX)
115 editing_behavior(webkit_glue::EDITING_BEHAVIOR_MAC), 114 editing_behavior(webkit_glue::EDITING_BEHAVIOR_MAC),
116 #elif defined(OS_WIN) 115 #elif defined(OS_WIN)
117 editing_behavior(webkit_glue::EDITING_BEHAVIOR_WIN), 116 editing_behavior(webkit_glue::EDITING_BEHAVIOR_WIN),
118 #elif defined(OS_ANDROID) 117 #elif defined(OS_ANDROID)
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 438
440 settings->setCSSStickyPositionEnabled(prefs.css_sticky_position_enabled); 439 settings->setCSSStickyPositionEnabled(prefs.css_sticky_position_enabled);
441 settings->setExperimentalCSSCustomFilterEnabled(prefs.css_shaders_enabled); 440 settings->setExperimentalCSSCustomFilterEnabled(prefs.css_shaders_enabled);
442 settings->setExperimentalCSSGridLayoutEnabled(prefs.css_grid_layout_enabled); 441 settings->setExperimentalCSSGridLayoutEnabled(prefs.css_grid_layout_enabled);
443 442
444 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); 443 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled);
445 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 444 WebRuntimeFeatures::enableTouch(prefs.touch_enabled);
446 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 445 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
447 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 446 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
448 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 447 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
449 settings->setTouchDragDropEnabled(prefs.touch_drag_drop_enabled);
450 448
451 settings->setFixedPositionCreatesStackingContext( 449 settings->setFixedPositionCreatesStackingContext(
452 prefs.fixed_position_creates_stacking_context); 450 prefs.fixed_position_creates_stacking_context);
453 451
454 settings->setDeferredImageDecodingEnabled( 452 settings->setDeferredImageDecodingEnabled(
455 prefs.deferred_image_decoding_enabled); 453 prefs.deferred_image_decoding_enabled);
456 settings->setShouldRespectImageOrientation( 454 settings->setShouldRespectImageOrientation(
457 prefs.should_respect_image_orientation); 455 prefs.should_respect_image_orientation);
458 456
459 settings->setUnsafePluginPastingEnabled(false); 457 settings->setUnsafePluginPastingEnabled(false);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 COMPILE_ASSERT_MATCHING_ENUMS( 499 COMPILE_ASSERT_MATCHING_ENUMS(
502 webkit_glue::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); 500 webkit_glue::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac);
503 COMPILE_ASSERT_MATCHING_ENUMS( 501 COMPILE_ASSERT_MATCHING_ENUMS(
504 webkit_glue::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); 502 webkit_glue::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin);
505 COMPILE_ASSERT_MATCHING_ENUMS( 503 COMPILE_ASSERT_MATCHING_ENUMS(
506 webkit_glue::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); 504 webkit_glue::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix);
507 COMPILE_ASSERT_MATCHING_ENUMS( 505 COMPILE_ASSERT_MATCHING_ENUMS(
508 webkit_glue::EDITING_BEHAVIOR_ANDROID, WebSettings::EditingBehaviorAndroid); 506 webkit_glue::EDITING_BEHAVIOR_ANDROID, WebSettings::EditingBehaviorAndroid);
509 507
510 } // namespace webkit_glue 508 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698