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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
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 "public/web/WebSettings.h" | 34 #include "public/web/WebSettings.h" |
| 35 #include "wtf/FastAllocBase.h" |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 | 38 |
38 class DevToolsEmulator; | 39 class DevToolsEmulator; |
39 class Settings; | 40 class Settings; |
40 | 41 |
41 class WebSettingsImpl final : public WebSettings { | 42 class WebSettingsImpl final : public WebSettings { |
| 43 WTF_MAKE_FAST_ALLOCATED(WebSettingsImpl); |
42 public: | 44 public: |
43 WebSettingsImpl(Settings*, DevToolsEmulator*); | 45 WebSettingsImpl(Settings*, DevToolsEmulator*); |
44 virtual ~WebSettingsImpl() { } | 46 virtual ~WebSettingsImpl() { } |
45 | 47 |
46 void setFromStrings(const WebString& name, const WebString& value) override; | 48 void setFromStrings(const WebString& name, const WebString& value) override; |
47 | 49 |
48 bool mainFrameResizesAreOrientationChanges() const override; | 50 bool mainFrameResizesAreOrientationChanges() const override; |
49 bool shrinksViewportContentToFit() const override; | 51 bool shrinksViewportContentToFit() const override; |
50 int availablePointerTypes() const override; | 52 int availablePointerTypes() const override; |
51 PointerType primaryPointerType() const override; | 53 PointerType primaryPointerType() const override; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // This quirk is to maintain compatibility with Android apps built on | 233 // This quirk is to maintain compatibility with Android apps built on |
232 // the Android SDK prior to and including version 18. Presumably, this | 234 // the Android SDK prior to and including version 18. Presumably, this |
233 // can be removed any time after 2015. See http://crbug.com/313754. | 235 // can be removed any time after 2015. See http://crbug.com/313754. |
234 bool m_clobberUserAgentInitialScaleQuirk; | 236 bool m_clobberUserAgentInitialScaleQuirk; |
235 bool m_mainFrameResizesAreOrientationChanges; | 237 bool m_mainFrameResizesAreOrientationChanges; |
236 }; | 238 }; |
237 | 239 |
238 } // namespace blink | 240 } // namespace blink |
239 | 241 |
240 #endif | 242 #endif |
OLD | NEW |