OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. |
10 * | 10 * |
(...skipping 14 matching lines...) Expand all Loading... |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef ViewportDescription_h | 28 #ifndef ViewportDescription_h |
29 #define ViewportDescription_h | 29 #define ViewportDescription_h |
30 | 30 |
31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
32 #include "core/frame/PageScaleConstraints.h" | 32 #include "core/frame/PageScaleConstraints.h" |
33 #include "platform/Length.h" | 33 #include "platform/Length.h" |
34 #include "platform/geometry/FloatSize.h" | 34 #include "platform/geometry/FloatSize.h" |
| 35 #include "wtf/Allocator.h" |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 | 38 |
38 class LocalFrame; | 39 class LocalFrame; |
39 | 40 |
40 struct CORE_EXPORT ViewportDescription { | 41 struct CORE_EXPORT ViewportDescription { |
| 42 DISALLOW_ALLOCATION(); |
41 | 43 |
42 enum Type { | 44 enum Type { |
43 // These are ordered in increasing importance. | 45 // These are ordered in increasing importance. |
44 UserAgentStyleSheet, | 46 UserAgentStyleSheet, |
45 HandheldFriendlyMeta, | 47 HandheldFriendlyMeta, |
46 MobileOptimizedMeta, | 48 MobileOptimizedMeta, |
47 ViewportMeta, | 49 ViewportMeta, |
48 AuthorStyleSheet | 50 AuthorStyleSheet |
49 } type; | 51 } type; |
50 | 52 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void reportMobilePageStats(const LocalFrame*) const; | 134 void reportMobilePageStats(const LocalFrame*) const; |
133 | 135 |
134 private: | 136 private: |
135 enum Direction { Horizontal, Vertical }; | 137 enum Direction { Horizontal, Vertical }; |
136 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); | 138 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); |
137 }; | 139 }; |
138 | 140 |
139 } // namespace blink | 141 } // namespace blink |
140 | 142 |
141 #endif // ViewportDescription_h | 143 #endif // ViewportDescription_h |
OLD | NEW |