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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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
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.
8 * (http://www.torchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. 10 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
10 * 11 *
11 * This library is free software; you can redistribute it and/or 12 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public 13 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either 14 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version. 15 * version 2 of the License, or (at your option) any later version.
15 * 16 *
16 * This library is distributed in the hope that it will be useful, 17 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return !(*this == other); 118 return !(*this == other);
118 } 119 }
119 120
120 bool isLegacyViewportType() const { 121 bool isLegacyViewportType() const {
121 return type >= HandheldFriendlyMeta && type <= ViewportMeta; 122 return type >= HandheldFriendlyMeta && type <= ViewportMeta;
122 } 123 }
123 bool isMetaViewportType() const { return type == ViewportMeta; } 124 bool isMetaViewportType() const { return type == ViewportMeta; }
124 bool isSpecifiedByAuthor() const { return type != UserAgentStyleSheet; } 125 bool isSpecifiedByAuthor() const { return type != UserAgentStyleSheet; }
125 bool matchesHeuristicsForGpuRasterization() const; 126 bool matchesHeuristicsForGpuRasterization() const;
126 127
127 // Reports UMA stat on whether the page is considered mobile or desktop and wh at kind of 128 // Reports UMA stat on whether the page is considered mobile or desktop and
128 // mobile it is. Applies only to Android, must only be called once per page lo ad. 129 // what kind of mobile it is. Applies only to Android, must only be called
130 // once per page load.
129 void reportMobilePageStats(const LocalFrame*) const; 131 void reportMobilePageStats(const LocalFrame*) const;
130 132
131 private: 133 private:
132 enum Direction { Horizontal, Vertical }; 134 enum Direction { Horizontal, Vertical };
133 static float resolveViewportLength(const Length&, 135 static float resolveViewportLength(const Length&,
134 const FloatSize& initialViewportSize, 136 const FloatSize& initialViewportSize,
135 Direction); 137 Direction);
136 }; 138 };
137 139
138 } // namespace blink 140 } // namespace blink
139 141
140 #endif // ViewportDescription_h 142 #endif // ViewportDescription_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698