OLD | NEW |
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 <unicode/uchar.h> | 7 #include <unicode/uchar.h> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 interactive_form_validation_enabled(true), | 97 interactive_form_validation_enabled(true), |
98 fullscreen_enabled(false), | 98 fullscreen_enabled(false), |
99 allow_displaying_insecure_content(true), | 99 allow_displaying_insecure_content(true), |
100 allow_running_insecure_content(false), | 100 allow_running_insecure_content(false), |
101 password_echo_enabled(false), | 101 password_echo_enabled(false), |
102 should_print_backgrounds(false), | 102 should_print_backgrounds(false), |
103 enable_scroll_animator(false), | 103 enable_scroll_animator(false), |
104 hixie76_websocket_protocol_enabled(false), | 104 hixie76_websocket_protocol_enabled(false), |
105 visual_word_movement_enabled(false), | 105 visual_word_movement_enabled(false), |
106 per_tile_painting_enabled(false), | 106 per_tile_painting_enabled(false), |
107 css_regions_enabled(false) { | 107 css_regions_enabled(false), |
| 108 css_shaders_enabled(false) { |
108 } | 109 } |
109 | 110 |
110 WebPreferences::~WebPreferences() { | 111 WebPreferences::~WebPreferences() { |
111 } | 112 } |
112 | 113 |
113 namespace { | 114 namespace { |
114 | 115 |
115 void setStandardFontFamilyWrapper(WebSettings* settings, | 116 void setStandardFontFamilyWrapper(WebSettings* settings, |
116 const string16& font, | 117 const string16& font, |
117 UScriptCode script) { | 118 UScriptCode script) { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 settings->setShouldPrintBackgrounds(should_print_backgrounds); | 345 settings->setShouldPrintBackgrounds(should_print_backgrounds); |
345 settings->setEnableScrollAnimator(enable_scroll_animator); | 346 settings->setEnableScrollAnimator(enable_scroll_animator); |
346 settings->setHixie76WebSocketProtocolEnabled( | 347 settings->setHixie76WebSocketProtocolEnabled( |
347 hixie76_websocket_protocol_enabled); | 348 hixie76_websocket_protocol_enabled); |
348 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); | 349 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); |
349 | 350 |
350 // Enable per-tile painting if requested on the command line. | 351 // Enable per-tile painting if requested on the command line. |
351 settings->setPerTilePaintingEnabled(per_tile_painting_enabled); | 352 settings->setPerTilePaintingEnabled(per_tile_painting_enabled); |
352 | 353 |
353 settings->setExperimentalCSSRegionsEnabled(css_regions_enabled); | 354 settings->setExperimentalCSSRegionsEnabled(css_regions_enabled); |
| 355 settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled); |
354 | 356 |
355 WebNetworkStateNotifier::setOnLine(is_online); | 357 WebNetworkStateNotifier::setOnLine(is_online); |
356 } | 358 } |
OLD | NEW |