| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebSettingsImpl.h" | 32 #include "WebSettingsImpl.h" |
| 33 | 33 |
| 34 #include "core/page/Settings.h" | 34 #include "core/page/Settings.h" |
| 35 #include "core/platform/graphics/chromium/DeferredImageDecoder.h" | 35 #include "core/platform/graphics/chromium/DeferredImageDecoder.h" |
| 36 #include "wtf/UnusedParam.h" | 36 #include "wtf/UnusedParam.h" |
| 37 | 37 |
| 38 #include "public/platform/WebString.h" | 38 #include "public/platform/WebString.h" |
| 39 #include "public/platform/WebURL.h" | 39 #include "public/platform/WebURL.h" |
| 40 | 40 |
| 41 #if OS(WINDOWS) | 41 #if OS(WIN) |
| 42 #include "core/rendering/RenderThemeChromiumWin.h" | 42 #include "core/rendering/RenderThemeChromiumWin.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 using namespace WebCore; | 45 using namespace WebCore; |
| 46 | 46 |
| 47 namespace WebKit { | 47 namespace WebKit { |
| 48 | 48 |
| 49 WebSettingsImpl::WebSettingsImpl(Settings* settings) | 49 WebSettingsImpl::WebSettingsImpl(Settings* settings) |
| 50 : m_settings(settings) | 50 : m_settings(settings) |
| 51 , m_showFPSCounter(false) | 51 , m_showFPSCounter(false) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 | 94 |
| 95 void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode
script) | 95 void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode
script) |
| 96 { | 96 { |
| 97 m_settings->setPictographFontFamily(font, script); | 97 m_settings->setPictographFontFamily(font, script); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void WebSettingsImpl::setDefaultFontSize(int size) | 100 void WebSettingsImpl::setDefaultFontSize(int size) |
| 101 { | 101 { |
| 102 m_settings->setDefaultFontSize(size); | 102 m_settings->setDefaultFontSize(size); |
| 103 #if OS(WINDOWS) | 103 #if OS(WIN) |
| 104 // RenderTheme is a singleton that needs to know the default font size to | 104 // RenderTheme is a singleton that needs to know the default font size to |
| 105 // draw some form controls. We let it know each time the size changes. | 105 // draw some form controls. We let it know each time the size changes. |
| 106 WebCore::RenderThemeChromiumWin::setDefaultFontSize(size); | 106 WebCore::RenderThemeChromiumWin::setDefaultFontSize(size); |
| 107 #endif | 107 #endif |
| 108 } | 108 } |
| 109 | 109 |
| 110 void WebSettingsImpl::setDefaultFixedFontSize(int size) | 110 void WebSettingsImpl::setDefaultFixedFontSize(int size) |
| 111 { | 111 { |
| 112 m_settings->setDefaultFixedFontSize(size); | 112 m_settings->setDefaultFixedFontSize(size); |
| 113 } | 113 } |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 { | 705 { |
| 706 m_settings->setPinchVirtualViewportEnabled(enabled); | 706 m_settings->setPinchVirtualViewportEnabled(enabled); |
| 707 } | 707 } |
| 708 | 708 |
| 709 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled) | 709 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled) |
| 710 { | 710 { |
| 711 m_settings->setUseSolidColorScrollbars(enabled); | 711 m_settings->setUseSolidColorScrollbars(enabled); |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace WebKit | 714 } // namespace WebKit |
| OLD | NEW |