Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: Source/core/dom/ViewportDescription.h

Issue 1074703002: Componentization: make core/dom visible for blink_web and blink_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/TouchList.h ('k') | Source/core/dom/custom/CustomElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/TouchList.h ('k') | Source/core/dom/custom/CustomElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698