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

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

Issue 14683006: Removed CSS Variables flag (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 | « content/public/common/common_param_traits_macros.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 memory_info_enabled(false), 92 memory_info_enabled(false),
93 fullscreen_enabled(false), 93 fullscreen_enabled(false),
94 allow_displaying_insecure_content(true), 94 allow_displaying_insecure_content(true),
95 allow_running_insecure_content(false), 95 allow_running_insecure_content(false),
96 password_echo_enabled(false), 96 password_echo_enabled(false),
97 should_print_backgrounds(false), 97 should_print_backgrounds(false),
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_variables_enabled(false),
103 css_grid_layout_enabled(false), 102 css_grid_layout_enabled(false),
104 lazy_layout_enabled(false), 103 lazy_layout_enabled(false),
105 touch_enabled(false), 104 touch_enabled(false),
106 device_supports_touch(false), 105 device_supports_touch(false),
107 device_supports_mouse(true), 106 device_supports_mouse(true),
108 touch_adjustment_enabled(true), 107 touch_adjustment_enabled(true),
109 touch_drag_drop_enabled(false), 108 touch_drag_drop_enabled(false),
110 fixed_position_creates_stacking_context(false), 109 fixed_position_creates_stacking_context(false),
111 sync_xhr_in_documents_enabled(true), 110 sync_xhr_in_documents_enabled(true),
112 deferred_image_decoding_enabled(false), 111 deferred_image_decoding_enabled(false),
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 prefs.allow_displaying_insecure_content); 433 prefs.allow_displaying_insecure_content);
435 settings->setAllowRunningOfInsecureContent( 434 settings->setAllowRunningOfInsecureContent(
436 prefs.allow_running_insecure_content); 435 prefs.allow_running_insecure_content);
437 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); 436 settings->setPasswordEchoEnabled(prefs.password_echo_enabled);
438 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); 437 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds);
439 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); 438 settings->setEnableScrollAnimator(prefs.enable_scroll_animator);
440 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled); 439 settings->setVisualWordMovementEnabled(prefs.visual_word_movement_enabled);
441 440
442 settings->setCSSStickyPositionEnabled(prefs.css_sticky_position_enabled); 441 settings->setCSSStickyPositionEnabled(prefs.css_sticky_position_enabled);
443 settings->setExperimentalCSSCustomFilterEnabled(prefs.css_shaders_enabled); 442 settings->setExperimentalCSSCustomFilterEnabled(prefs.css_shaders_enabled);
444 settings->setExperimentalCSSVariablesEnabled(prefs.css_variables_enabled);
445 settings->setExperimentalCSSGridLayoutEnabled(prefs.css_grid_layout_enabled); 443 settings->setExperimentalCSSGridLayoutEnabled(prefs.css_grid_layout_enabled);
446 444
447 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); 445 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled);
448 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 446 WebRuntimeFeatures::enableTouch(prefs.touch_enabled);
449 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 447 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
450 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 448 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
451 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 449 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
452 settings->setTouchDragDropEnabled(prefs.touch_drag_drop_enabled); 450 settings->setTouchDragDropEnabled(prefs.touch_drag_drop_enabled);
453 451
454 settings->setFixedPositionCreatesStackingContext( 452 settings->setFixedPositionCreatesStackingContext(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 webkit_glue::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); 501 webkit_glue::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac);
504 COMPILE_ASSERT_MATCHING_ENUMS( 502 COMPILE_ASSERT_MATCHING_ENUMS(
505 webkit_glue::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); 503 webkit_glue::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin);
506 COMPILE_ASSERT_MATCHING_ENUMS( 504 COMPILE_ASSERT_MATCHING_ENUMS(
507 webkit_glue::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); 505 webkit_glue::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix);
508 COMPILE_ASSERT_MATCHING_ENUMS( 506 COMPILE_ASSERT_MATCHING_ENUMS(
509 webkit_glue::EDITING_BEHAVIOR_ANDROID, WebSettings::EditingBehaviorAndroid); 507 webkit_glue::EDITING_BEHAVIOR_ANDROID, WebSettings::EditingBehaviorAndroid);
510 508
511 } // namespace webkit_glue 509 } // namespace webkit_glue
512 510
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698