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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.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/html/canvas/CanvasPattern.h ('k') | Source/core/html/canvas/DataView.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) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class HTMLCanvasElement; 60 class HTMLCanvasElement;
61 class HTMLImageElement; 61 class HTMLImageElement;
62 class HTMLVideoElement; 62 class HTMLVideoElement;
63 class ImageBitmap; 63 class ImageBitmap;
64 class ImageData; 64 class ImageData;
65 class TextMetrics; 65 class TextMetrics;
66 66
67 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<MutableStylePropertySet> > MutableStylePropertyMap; 67 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<MutableStylePropertySet> > MutableStylePropertyMap;
68 68
69 class CanvasRenderingContext2D FINAL: public CanvasRenderingContext, public Scri ptWrappable, public CanvasPathMethods { 69 class CanvasRenderingContext2D FINAL: public CanvasRenderingContext, public Scri ptWrappable, public CanvasPathMethods {
70 DEFINE_WRAPPERTYPEINFO();
70 public: 71 public:
71 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle ment* canvas, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityP arseMode) 72 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2D> create(HTMLCanvasEle ment* canvas, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityP arseMode)
72 { 73 {
73 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, us esCSSCompatibilityParseMode)); 74 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs, us esCSSCompatibilityParseMode));
74 } 75 }
75 virtual ~CanvasRenderingContext2D(); 76 virtual ~CanvasRenderingContext2D();
76 77
77 CanvasStyle* strokeStyle() const; 78 CanvasStyle* strokeStyle() const;
78 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); 79 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>);
79 80
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 unsigned m_tryRestoreContextAttemptCount; 380 unsigned m_tryRestoreContextAttemptCount;
380 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 381 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
381 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 382 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
382 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 383 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
383 }; 384 };
384 385
385 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 386 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
386 387
387 } // namespace blink 388 } // namespace blink
388 389
389 #endif 390 #endif // CanvasRenderingContext2D_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasPattern.h ('k') | Source/core/html/canvas/DataView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698