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

Side by Side Diff: third_party/WebKit/Source/core/style/BasicShapes.h

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ Created 3 years, 7 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class Path; 47 class Path;
48 48
49 class CORE_EXPORT BasicShape : public RefCounted<BasicShape> { 49 class CORE_EXPORT BasicShape : public RefCounted<BasicShape> {
50 public: 50 public:
51 virtual ~BasicShape() {} 51 virtual ~BasicShape() {}
52 52
53 enum ShapeType { 53 enum ShapeType {
54 kBasicShapeEllipseType, 54 kBasicShapeEllipseType,
55 kBasicShapePolygonType, 55 kBasicShapePolygonType,
56 kBasicShapeCircleType, 56 kBasicShapeCircleType,
57 kBasicShapeInsetType 57 kBasicShapeInsetType,
58 kStyleRayType,
59 kStylePathType
58 }; 60 };
59 61
60 bool CanBlend(const BasicShape*) const; 62 bool CanBlend(const BasicShape*) const;
61 bool IsSameType(const BasicShape& other) const { 63 bool IsSameType(const BasicShape& other) const {
62 return GetType() == other.GetType(); 64 return GetType() == other.GetType();
63 } 65 }
64 66
65 virtual void GetPath(Path&, const FloatRect&) = 0; 67 virtual void GetPath(Path&, const FloatRect&) = 0;
66 virtual WindRule GetWindRule() const { return RULE_NONZERO; } 68 virtual WindRule GetWindRule() const { return RULE_NONZERO; }
67 virtual PassRefPtr<BasicShape> Blend(const BasicShape*, double) const = 0; 69 virtual PassRefPtr<BasicShape> Blend(const BasicShape*, double) const = 0;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 LengthSize top_left_radius_; 305 LengthSize top_left_radius_;
304 LengthSize top_right_radius_; 306 LengthSize top_right_radius_;
305 LengthSize bottom_right_radius_; 307 LengthSize bottom_right_radius_;
306 LengthSize bottom_left_radius_; 308 LengthSize bottom_left_radius_;
307 }; 309 };
308 310
309 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset); 311 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset);
310 312
311 } // namespace blink 313 } // namespace blink
312 #endif 314 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698