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

Side by Side Diff: third_party/WebKit/Source/platform/Length.h

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com)
5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ASSERT(type() == Fixed); 165 ASSERT(type() == Fixed);
166 return getFloatValue(); 166 return getFloatValue();
167 } 167 }
168 168
169 float percent() const 169 float percent() const
170 { 170 {
171 ASSERT(type() == Percent); 171 ASSERT(type() == Percent);
172 return getFloatValue(); 172 return getFloatValue();
173 } 173 }
174 174
175 PixelsAndPercent pixelsAndPercent() const; 175 PixelsAndPercent getPixelsAndPercent() const;
176 176
177 CalculationValue& calculationValue() const; 177 CalculationValue& getCalculationValue() const;
178 178
179 LengthType type() const { return static_cast<LengthType>(m_type); } 179 LengthType type() const { return static_cast<LengthType>(m_type); }
180 bool quirk() const { return m_quirk; } 180 bool quirk() const { return m_quirk; }
181 181
182 void setQuirk(bool quirk) 182 void setQuirk(bool quirk)
183 { 183 {
184 m_quirk = quirk; 184 m_quirk = quirk;
185 } 185 }
186 186
187 void setValue(LengthType t, int value) 187 void setValue(LengthType t, int value)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 float m_floatValue; 326 float m_floatValue;
327 }; 327 };
328 bool m_quirk; 328 bool m_quirk;
329 unsigned char m_type; 329 unsigned char m_type;
330 bool m_isFloat; 330 bool m_isFloat;
331 }; 331 };
332 332
333 } // namespace blink 333 } // namespace blink
334 334
335 #endif // Length_h 335 #endif // Length_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/JSONValues.cpp ('k') | third_party/WebKit/Source/platform/Length.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698