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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 15 matching lines...) Expand all
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class AffineTransform; 29 class AffineTransform;
30 class FloatRect; 30 class FloatRect;
31 class SVGPreserveAspectRatioTearOff; 31 class SVGPreserveAspectRatioTearOff;
32 32
33 class SVGPreserveAspectRatio final : public SVGPropertyHelper<SVGPreserveAspectR atio> { 33 class SVGPreserveAspectRatio final : public SVGPropertyHelper<SVGPreserveAspectR atio> {
34 public: 34 public:
35 enum SVGPreserveAspectRatioType { 35 enum SVGPreserveAspectRatioType {
36 SVG_PRESERVEASPECTRATIO_UNKNOWN = 0, 36 kSvgPreserveaspectratioUnknown = 0,
37 SVG_PRESERVEASPECTRATIO_NONE = 1, 37 kSvgPreserveaspectratioNone = 1,
38 SVG_PRESERVEASPECTRATIO_XMINYMIN = 2, 38 kSvgPreserveaspectratioXminymin = 2,
39 SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3, 39 kSvgPreserveaspectratioXmidymin = 3,
40 SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4, 40 kSvgPreserveaspectratioXmaxymin = 4,
41 SVG_PRESERVEASPECTRATIO_XMINYMID = 5, 41 kSvgPreserveaspectratioXminymid = 5,
42 SVG_PRESERVEASPECTRATIO_XMIDYMID = 6, 42 kSvgPreserveaspectratioXmidymid = 6,
43 SVG_PRESERVEASPECTRATIO_XMAXYMID = 7, 43 kSvgPreserveaspectratioXmaxymid = 7,
44 SVG_PRESERVEASPECTRATIO_XMINYMAX = 8, 44 kSvgPreserveaspectratioXminymax = 8,
45 SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9, 45 kSvgPreserveaspectratioXmidymax = 9,
46 SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10 46 kSvgPreserveaspectratioXmaxymax = 10
47 }; 47 };
48 48
49 enum SVGMeetOrSliceType { 49 enum SVGMeetOrSliceType {
50 SVG_MEETORSLICE_UNKNOWN = 0, 50 kSvgMeetorsliceUnknown = 0,
51 SVG_MEETORSLICE_MEET = 1, 51 kSvgMeetorsliceMeet = 1,
52 SVG_MEETORSLICE_SLICE = 2 52 kSvgMeetorsliceSlice = 2
53 }; 53 };
54 54
55 typedef SVGPreserveAspectRatioTearOff TearOffType; 55 typedef SVGPreserveAspectRatioTearOff TearOffType;
56 56
57 static SVGPreserveAspectRatio* create() 57 static SVGPreserveAspectRatio* create()
58 { 58 {
59 return new SVGPreserveAspectRatio(); 59 return new SVGPreserveAspectRatio();
60 } 60 }
61 61
62 virtual SVGPreserveAspectRatio* clone() const; 62 virtual SVGPreserveAspectRatio* clone() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 SVGPreserveAspectRatioType m_align; 97 SVGPreserveAspectRatioType m_align;
98 SVGMeetOrSliceType m_meetOrSlice; 98 SVGMeetOrSliceType m_meetOrSlice;
99 }; 99 };
100 100
101 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio); 101 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio);
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // SVGPreserveAspectRatio_h 105 #endif // SVGPreserveAspectRatio_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698