| 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 10 matching lines...) Expand all Loading... |
| 21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
| 22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 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/page/PageScaleConstraints.h" | 32 #include "core/page/PageScaleConstraints.h" |
| 32 #include "platform/Length.h" | 33 #include "platform/Length.h" |
| 33 #include "platform/geometry/FloatSize.h" | 34 #include "platform/geometry/FloatSize.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 class LocalFrame; | 38 class LocalFrame; |
| 38 | 39 |
| 39 struct ViewportDescription { | 40 struct CORE_EXPORT ViewportDescription { |
| 40 | 41 |
| 41 enum Type { | 42 enum Type { |
| 42 // These are ordered in increasing importance. | 43 // These are ordered in increasing importance. |
| 43 UserAgentStyleSheet, | 44 UserAgentStyleSheet, |
| 44 HandheldFriendlyMeta, | 45 HandheldFriendlyMeta, |
| 45 MobileOptimizedMeta, | 46 MobileOptimizedMeta, |
| 46 ViewportMeta, | 47 ViewportMeta, |
| 47 AuthorStyleSheet | 48 AuthorStyleSheet |
| 48 } type; | 49 } type; |
| 49 | 50 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void reportMobilePageStats(const LocalFrame*) const; | 131 void reportMobilePageStats(const LocalFrame*) const; |
| 131 | 132 |
| 132 private: | 133 private: |
| 133 enum Direction { Horizontal, Vertical }; | 134 enum Direction { Horizontal, Vertical }; |
| 134 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); | 135 static float resolveViewportLength(const Length&, const FloatSize& initialVi
ewportSize, Direction); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 } // namespace blink | 138 } // namespace blink |
| 138 | 139 |
| 139 #endif // ViewportDescription_h | 140 #endif // ViewportDescription_h |
| OLD | NEW |