| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebSettingsImpl_h | 31 #ifndef WebSettingsImpl_h |
| 32 #define WebSettingsImpl_h | 32 #define WebSettingsImpl_h |
| 33 | 33 |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "public/web/WebSettings.h" | 35 #include "public/web/WebSettings.h" |
| 36 #include "web/WebExport.h" |
| 37 #include "wtf/Compiler.h" |
| 36 | 38 |
| 37 namespace blink { | 39 namespace blink { |
| 38 | 40 |
| 39 class DevToolsEmulator; | 41 class DevToolsEmulator; |
| 40 class Settings; | 42 class Settings; |
| 41 | 43 |
| 42 class WebSettingsImpl final : public WebSettings { | 44 class WEB_EXPORT WebSettingsImpl final : WTF_NON_EXPORTED_BASE(public WebSetting
s) { |
| 43 public: | 45 public: |
| 44 WebSettingsImpl(Settings*, DevToolsEmulator*); | 46 WebSettingsImpl(Settings*, DevToolsEmulator*); |
| 45 virtual ~WebSettingsImpl() { } | 47 virtual ~WebSettingsImpl() { } |
| 46 | 48 |
| 47 void setFromStrings(const WebString& name, const WebString& value) override; | 49 void setFromStrings(const WebString& name, const WebString& value) override; |
| 48 | 50 |
| 49 bool mainFrameResizesAreOrientationChanges() const override; | 51 bool mainFrameResizesAreOrientationChanges() const override; |
| 50 bool shrinksViewportContentToFit() const override; | 52 bool shrinksViewportContentToFit() const override; |
| 51 bool viewportEnabled() const override; | 53 bool viewportEnabled() const override; |
| 52 void setAccelerated2dCanvasEnabled(bool) override; | 54 void setAccelerated2dCanvasEnabled(bool) override; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 bool m_viewportMetaNonUserScalableQuirk; | 229 bool m_viewportMetaNonUserScalableQuirk; |
| 228 // This quirk is to maintain compatibility with Android apps built on | 230 // This quirk is to maintain compatibility with Android apps built on |
| 229 // the Android SDK prior to and including version 18. Presumably, this | 231 // the Android SDK prior to and including version 18. Presumably, this |
| 230 // can be removed any time after 2015. See http://crbug.com/313754. | 232 // can be removed any time after 2015. See http://crbug.com/313754. |
| 231 bool m_clobberUserAgentInitialScaleQuirk; | 233 bool m_clobberUserAgentInitialScaleQuirk; |
| 232 }; | 234 }; |
| 233 | 235 |
| 234 } // namespace blink | 236 } // namespace blink |
| 235 | 237 |
| 236 #endif | 238 #endif |
| OLD | NEW |