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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 215193002: Removing webkit-prefixed image data HD APIs from 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cleaned up obsolete tests Created 6 years, 9 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/frame/UseCounter.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PassRefPtr<CanvasGradient> createLinearGradient(float x0, float y0, float x1 , float y1, ExceptionState&); 192 PassRefPtr<CanvasGradient> createLinearGradient(float x0, float y0, float x1 , float y1, ExceptionState&);
193 PassRefPtr<CanvasGradient> createRadialGradient(float x0, float y0, float r0 , float x1, float y1, float r1, ExceptionState&); 193 PassRefPtr<CanvasGradient> createRadialGradient(float x0, float y0, float r0 , float x1, float y1, float r1, ExceptionState&);
194 PassRefPtr<CanvasPattern> createPattern(CanvasImageSource*, const String& re petitionType, ExceptionState&); 194 PassRefPtr<CanvasPattern> createPattern(CanvasImageSource*, const String& re petitionType, ExceptionState&);
195 195
196 PassRefPtr<ImageData> createImageData(PassRefPtr<ImageData>, ExceptionState& ) const; 196 PassRefPtr<ImageData> createImageData(PassRefPtr<ImageData>, ExceptionState& ) const;
197 PassRefPtr<ImageData> createImageData(float width, float height, ExceptionSt ate&) const; 197 PassRefPtr<ImageData> createImageData(float width, float height, ExceptionSt ate&) const;
198 PassRefPtr<ImageData> getImageData(float sx, float sy, float sw, float sh, E xceptionState&) const; 198 PassRefPtr<ImageData> getImageData(float sx, float sy, float sw, float sh, E xceptionState&) const;
199 void putImageData(ImageData*, float dx, float dy, ExceptionState&); 199 void putImageData(ImageData*, float dx, float dy, ExceptionState&);
200 void putImageData(ImageData*, float dx, float dy, float dirtyX, float dirtyY , float dirtyWidth, float dirtyHeight, ExceptionState&); 200 void putImageData(ImageData*, float dx, float dy, float dirtyX, float dirtyY , float dirtyWidth, float dirtyHeight, ExceptionState&);
201 201
202 // Slated for deprecation:
203 void webkitPutImageDataHD(ImageData* image, float dx, float dy, ExceptionSta te& e) { putImageData(image, dx, dy, e); }
204 void webkitPutImageDataHD(ImageData* image, float dx, float dy, float dirtyX , float dirtyY, float dirtyWidth, float dirtyHeight, ExceptionState& e) { putIma geData(image, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight, e); }
205 PassRefPtr<ImageData> webkitGetImageDataHD(float sx, float sy, float sw, flo at sh, ExceptionState&) const;
206 float webkitBackingStorePixelRatio() const { return 1; }
207
208 void reset(); 202 void reset();
209 203
210 String font() const; 204 String font() const;
211 void setFont(const String&); 205 void setFont(const String&);
212 206
213 String textAlign() const; 207 String textAlign() const;
214 void setTextAlign(const String&); 208 void setTextAlign(const String&);
215 209
216 String textBaseline() const; 210 String textBaseline() const;
217 void setTextBaseline(const String&); 211 void setTextBaseline(const String&);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool m_usesCSSCompatibilityParseMode; 335 bool m_usesCSSCompatibilityParseMode;
342 bool m_hasAlpha; 336 bool m_hasAlpha;
343 MutableStylePropertyMap m_fetchedFonts; 337 MutableStylePropertyMap m_fetchedFonts;
344 }; 338 };
345 339
346 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 340 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
347 341
348 } // namespace WebCore 342 } // namespace WebCore
349 343
350 #endif 344 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698