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

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

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/TextLinkColors.h ('k') | Source/core/dom/WeakIdentifierMap.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 14 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/TextLinkColors.h ('k') | Source/core/dom/WeakIdentifierMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698