| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   84       accelerated_2d_canvas_enabled(false), |   84       accelerated_2d_canvas_enabled(false), | 
|   85       accelerated_drawing_enabled(false), |   85       accelerated_drawing_enabled(false), | 
|   86       accelerated_plugins_enabled(false), |   86       accelerated_plugins_enabled(false), | 
|   87       memory_info_enabled(false), |   87       memory_info_enabled(false), | 
|   88       interactive_form_validation_enabled(true), |   88       interactive_form_validation_enabled(true), | 
|   89       fullscreen_enabled(false), |   89       fullscreen_enabled(false), | 
|   90       allow_displaying_insecure_content(true), |   90       allow_displaying_insecure_content(true), | 
|   91       allow_running_insecure_content(false), |   91       allow_running_insecure_content(false), | 
|   92       should_print_backgrounds(false), |   92       should_print_backgrounds(false), | 
|   93       enable_scroll_animator(false), |   93       enable_scroll_animator(false), | 
|   94       hixie76_websocket_protocol_enabled(false) { |   94       hixie76_websocket_protocol_enabled(false), | 
 |   95       visual_word_movement_enabled(false) { | 
|   95 } |   96 } | 
|   96  |   97  | 
|   97 WebPreferences::~WebPreferences() { |   98 WebPreferences::~WebPreferences() { | 
|   98 } |   99 } | 
|   99  |  100  | 
|  100 namespace { |  101 namespace { | 
|  101  |  102  | 
|  102 void setStandardFontFamilyWrapper(WebSettings* settings, |  103 void setStandardFontFamilyWrapper(WebSettings* settings, | 
|  103                                   const string16& font, |  104                                   const string16& font, | 
|  104                                   UScriptCode script) { |  105                                   UScriptCode script) { | 
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  305   settings->setInteractiveFormValidationEnabled( |  306   settings->setInteractiveFormValidationEnabled( | 
|  306       interactive_form_validation_enabled); |  307       interactive_form_validation_enabled); | 
|  307  |  308  | 
|  308   settings->setFullScreenEnabled(fullscreen_enabled); |  309   settings->setFullScreenEnabled(fullscreen_enabled); | 
|  309   settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); |  310   settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); | 
|  310   settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); |  311   settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); | 
|  311   settings->setShouldPrintBackgrounds(should_print_backgrounds); |  312   settings->setShouldPrintBackgrounds(should_print_backgrounds); | 
|  312   settings->setEnableScrollAnimator(enable_scroll_animator); |  313   settings->setEnableScrollAnimator(enable_scroll_animator); | 
|  313   settings->setHixie76WebSocketProtocolEnabled( |  314   settings->setHixie76WebSocketProtocolEnabled( | 
|  314       hixie76_websocket_protocol_enabled); |  315       hixie76_websocket_protocol_enabled); | 
 |  316   settings->setVisualWordMovementEnabled(visual_word_movement_enabled); | 
|  315  |  317  | 
|  316   WebNetworkStateNotifier::setOnLine(is_online); |  318   WebNetworkStateNotifier::setOnLine(is_online); | 
|  317 } |  319 } | 
| OLD | NEW |