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

Side by Side Diff: Source/core/svg/SVGMatrixTearOff.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGMaskElement.h ('k') | Source/core/svg/SVGMetadataElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class SVGTransformTearOff; 41 class SVGTransformTearOff;
42 42
43 // SVGMatrixTearOff wraps a AffineTransform for Javascript. 43 // SVGMatrixTearOff wraps a AffineTransform for Javascript.
44 // Its instance can either hold a static value, or this can be teared off from | SVGTransform.matrix|. 44 // Its instance can either hold a static value, or this can be teared off from | SVGTransform.matrix|.
45 // This does not derive from SVGPropertyTearOff, as its instances are never tied to an animated property nor an XML attribute. 45 // This does not derive from SVGPropertyTearOff, as its instances are never tied to an animated property nor an XML attribute.
46 class SVGMatrixTearOff FINAL : public RefCounted<SVGMatrixTearOff>, public Scrip tWrappable { 46 class SVGMatrixTearOff FINAL : public RefCounted<SVGMatrixTearOff>, public Scrip tWrappable {
47 DEFINE_WRAPPERTYPEINFO();
47 public: 48 public:
48 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) 49 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value)
49 { 50 {
50 return adoptRef(new SVGMatrixTearOff(value)); 51 return adoptRef(new SVGMatrixTearOff(value));
51 } 52 }
52 53
53 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) 54 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target)
54 { 55 {
55 return adoptRef(new SVGMatrixTearOff(target)); 56 return adoptRef(new SVGMatrixTearOff(target));
56 } 57 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void commitChange(); 96 void commitChange();
96 97
97 AffineTransform m_staticValue; 98 AffineTransform m_staticValue;
98 99
99 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe r in oilpan. 100 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe r in oilpan.
100 SVGTransformTearOff* m_contextTransform; 101 SVGTransformTearOff* m_contextTransform;
101 }; 102 };
102 103
103 } // namespace blink 104 } // namespace blink
104 105
105 #endif // SVGMatrixTearOff_h_ 106 #endif // SVGMatrixTearOff_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMaskElement.h ('k') | Source/core/svg/SVGMetadataElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698