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/core/style/BasicShapes.h

Issue 2611823003: ABANDONED CL: Changes to compile and pass tests after Big Blink Rename (excluding functions). (Closed)
Patch Set: Inducing merge conflicts to force human review and changes after rename. Created 3 years, 11 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) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual bool operator==(const BasicShape&) const = 0; 68 virtual bool operator==(const BasicShape&) const = 0;
69 69
70 virtual ShapeType type() const = 0; 70 virtual ShapeType type() const = 0;
71 71
72 protected: 72 protected:
73 BasicShape() {} 73 BasicShape() {}
74 }; 74 };
75 75
76 #define DEFINE_BASICSHAPE_TYPE_CASTS(thisType) \ 76 #define DEFINE_BASICSHAPE_TYPE_CASTS(thisType) \
77 DEFINE_TYPE_CASTS(thisType, BasicShape, value, \ 77 DEFINE_TYPE_CASTS(thisType, BasicShape, value, \
78 value->type() == BasicShape::thisType##Type, \ 78 value->type() == BasicShape::k##thisType##Type, \
79 value.type() == BasicShape::thisType##Type) 79 value.type() == BasicShape::k##thisType##Type)
80 80
81 class BasicShapeCenterCoordinate { 81 class BasicShapeCenterCoordinate {
82 DISALLOW_NEW(); 82 DISALLOW_NEW();
83 83
84 public: 84 public:
85 enum Direction { TopLeft, BottomRight }; 85 enum Direction { TopLeft, BottomRight };
86 86
87 BasicShapeCenterCoordinate(Direction direction = TopLeft, 87 BasicShapeCenterCoordinate(Direction direction = TopLeft,
88 const Length& length = Length(0, Fixed)) 88 const Length& length = Length(0, Fixed))
89 : m_direction(direction), 89 : m_direction(direction),
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 LengthSize m_topLeftRadius; 303 LengthSize m_topLeftRadius;
304 LengthSize m_topRightRadius; 304 LengthSize m_topRightRadius;
305 LengthSize m_bottomRightRadius; 305 LengthSize m_bottomRightRadius;
306 LengthSize m_bottomLeftRadius; 306 LengthSize m_bottomLeftRadius;
307 }; 307 };
308 308
309 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset); 309 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset);
310 310
311 } // namespace blink 311 } // namespace blink
312 #endif 312 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698