| 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" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
| 20 | 20 |
| 21 using WebKit::WebNetworkStateNotifier; | 21 using WebKit::WebNetworkStateNotifier; |
| 22 using WebKit::WebRuntimeFeatures; | 22 using WebKit::WebRuntimeFeatures; |
| 23 using WebKit::WebSettings; | 23 using WebKit::WebSettings; |
| 24 using WebKit::WebString; | 24 using WebKit::WebString; |
| 25 using WebKit::WebURL; | 25 using WebKit::WebURL; |
| 26 using WebKit::WebView; | 26 using WebKit::WebView; |
| 27 | 27 |
| 28 namespace webkit_glue { |
| 29 |
| 28 WebPreferences::WebPreferences() | 30 WebPreferences::WebPreferences() |
| 29 : standard_font_family(ASCIIToUTF16("Times New Roman")), | 31 : standard_font_family(ASCIIToUTF16("Times New Roman")), |
| 30 fixed_font_family(ASCIIToUTF16("Courier New")), | 32 fixed_font_family(ASCIIToUTF16("Courier New")), |
| 31 serif_font_family(ASCIIToUTF16("Times New Roman")), | 33 serif_font_family(ASCIIToUTF16("Times New Roman")), |
| 32 sans_serif_font_family(ASCIIToUTF16("Arial")), | 34 sans_serif_font_family(ASCIIToUTF16("Arial")), |
| 33 cursive_font_family(ASCIIToUTF16("Script")), | 35 cursive_font_family(ASCIIToUTF16("Script")), |
| 34 fantasy_font_family(), // Not sure what to use on Windows. | 36 fantasy_font_family(), // Not sure what to use on Windows. |
| 35 default_font_size(16), | 37 default_font_size(16), |
| 36 default_fixed_font_size(13), | 38 default_fixed_font_size(13), |
| 37 minimum_font_size(0), | 39 minimum_font_size(0), |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); | 347 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); |
| 346 | 348 |
| 347 // Enable per-tile painting if requested on the command line. | 349 // Enable per-tile painting if requested on the command line. |
| 348 settings->setPerTilePaintingEnabled(per_tile_painting_enabled); | 350 settings->setPerTilePaintingEnabled(per_tile_painting_enabled); |
| 349 | 351 |
| 350 settings->setExperimentalCSSRegionsEnabled(css_regions_enabled); | 352 settings->setExperimentalCSSRegionsEnabled(css_regions_enabled); |
| 351 settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled); | 353 settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled); |
| 352 | 354 |
| 353 WebNetworkStateNotifier::setOnLine(is_online); | 355 WebNetworkStateNotifier::setOnLine(is_online); |
| 354 } | 356 } |
| 357 |
| 358 } // namespace webkit_glue |
| OLD | NEW |