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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #ifndef ViewportDescription_h | 28 #ifndef ViewportDescription_h |
29 #define ViewportDescription_h | 29 #define ViewportDescription_h |
30 | 30 |
31 #include "core/page/PageScaleConstraints.h" | 31 #include "core/page/PageScaleConstraints.h" |
32 #include "platform/Length.h" | 32 #include "platform/Length.h" |
33 #include "platform/geometry/FloatSize.h" | 33 #include "platform/geometry/FloatSize.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class KURL; | |
38 class LocalFrame; | 37 class LocalFrame; |
39 | 38 |
40 struct ViewportDescription { | 39 struct ViewportDescription { |
41 | 40 |
42 enum Type { | 41 enum Type { |
43 // These are ordered in increasing importance. | 42 // These are ordered in increasing importance. |
44 UserAgentStyleSheet, | 43 UserAgentStyleSheet, |
45 HandheldFriendlyMeta, | 44 HandheldFriendlyMeta, |
46 MobileOptimizedMeta, | 45 MobileOptimizedMeta, |
47 ViewportMeta, | 46 ViewportMeta, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void reportMobilePageStats(const LocalFrame*) const; | 130 void reportMobilePageStats(const LocalFrame*) const; |
132 | 131 |
133 private: | 132 private: |
134 enum Direction { Horizontal, Vertical }; | 133 enum Direction { Horizontal, Vertical }; |
135 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); | 134 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); |
136 }; | 135 }; |
137 | 136 |
138 } // namespace WebCore | 137 } // namespace WebCore |
139 | 138 |
140 #endif // ViewportDescription_h | 139 #endif // ViewportDescription_h |
OLD | NEW |