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

Side by Side Diff: Source/bindings/v8/custom/V8SVGPathSegCustom.cpp

Issue 17035010: Revert "Rename DOMWindow interface to Window" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "V8SVGPathSeg.h" 33 #include "V8SVGPathSeg.h"
34 34
35 #include "V8DOMWindow.h"
35 #include "V8SVGPathSegArcAbs.h" 36 #include "V8SVGPathSegArcAbs.h"
36 #include "V8SVGPathSegArcRel.h" 37 #include "V8SVGPathSegArcRel.h"
37 #include "V8SVGPathSegClosePath.h" 38 #include "V8SVGPathSegClosePath.h"
38 #include "V8SVGPathSegCurvetoCubicAbs.h" 39 #include "V8SVGPathSegCurvetoCubicAbs.h"
39 #include "V8SVGPathSegCurvetoCubicRel.h" 40 #include "V8SVGPathSegCurvetoCubicRel.h"
40 #include "V8SVGPathSegCurvetoCubicSmoothAbs.h" 41 #include "V8SVGPathSegCurvetoCubicSmoothAbs.h"
41 #include "V8SVGPathSegCurvetoCubicSmoothRel.h" 42 #include "V8SVGPathSegCurvetoCubicSmoothRel.h"
42 #include "V8SVGPathSegCurvetoQuadraticAbs.h" 43 #include "V8SVGPathSegCurvetoQuadraticAbs.h"
43 #include "V8SVGPathSegCurvetoQuadraticRel.h" 44 #include "V8SVGPathSegCurvetoQuadraticRel.h"
44 #include "V8SVGPathSegCurvetoQuadraticSmoothAbs.h" 45 #include "V8SVGPathSegCurvetoQuadraticSmoothAbs.h"
45 #include "V8SVGPathSegCurvetoQuadraticSmoothRel.h" 46 #include "V8SVGPathSegCurvetoQuadraticSmoothRel.h"
46 #include "V8SVGPathSegLinetoAbs.h" 47 #include "V8SVGPathSegLinetoAbs.h"
47 #include "V8SVGPathSegLinetoHorizontalAbs.h" 48 #include "V8SVGPathSegLinetoHorizontalAbs.h"
48 #include "V8SVGPathSegLinetoHorizontalRel.h" 49 #include "V8SVGPathSegLinetoHorizontalRel.h"
49 #include "V8SVGPathSegLinetoRel.h" 50 #include "V8SVGPathSegLinetoRel.h"
50 #include "V8SVGPathSegLinetoVerticalAbs.h" 51 #include "V8SVGPathSegLinetoVerticalAbs.h"
51 #include "V8SVGPathSegLinetoVerticalRel.h" 52 #include "V8SVGPathSegLinetoVerticalRel.h"
52 #include "V8SVGPathSegMovetoAbs.h" 53 #include "V8SVGPathSegMovetoAbs.h"
53 #include "V8SVGPathSegMovetoRel.h" 54 #include "V8SVGPathSegMovetoRel.h"
54 #include "V8Window.h"
55 #include "bindings/v8/V8DOMWrapper.h" 55 #include "bindings/v8/V8DOMWrapper.h"
56 56
57 namespace WebCore { 57 namespace WebCore {
58 58
59 v8::Handle<v8::Object> wrap(SVGPathSeg* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate* isolate) 59 v8::Handle<v8::Object> wrap(SVGPathSeg* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate* isolate)
60 { 60 {
61 ASSERT(impl); 61 ASSERT(impl);
62 switch (impl->pathSegType()) { 62 switch (impl->pathSegType()) {
63 case SVGPathSeg::PATHSEG_CLOSEPATH: 63 case SVGPathSeg::PATHSEG_CLOSEPATH:
64 return wrap(static_cast<SVGPathSegClosePath*>(impl), creationContext, is olate); 64 return wrap(static_cast<SVGPathSegClosePath*>(impl), creationContext, is olate);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: 97 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
98 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothAbs*>(impl), cre ationContext, isolate); 98 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothAbs*>(impl), cre ationContext, isolate);
99 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: 99 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
100 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothRel*>(impl), cre ationContext, isolate); 100 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothRel*>(impl), cre ationContext, isolate);
101 } 101 }
102 ASSERT_NOT_REACHED(); 102 ASSERT_NOT_REACHED();
103 return V8SVGPathSeg::createWrapper(impl, creationContext, isolate); 103 return V8SVGPathSeg::createWrapper(impl, creationContext, isolate);
104 } 104 }
105 105
106 } // namespace WebCore 106 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8SVGDocumentCustom.cpp ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698