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

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

Issue 232913004: Use StrictTypeChecking for methods on CRC2D that accepts Path2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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) 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void setFillColor(const String& color, float alpha); 145 void setFillColor(const String& color, float alpha);
146 void setFillColor(float grayLevel, float alpha); 146 void setFillColor(float grayLevel, float alpha);
147 void setFillColor(float r, float g, float b, float a); 147 void setFillColor(float r, float g, float b, float a);
148 void setFillColor(float c, float m, float y, float k, float a); 148 void setFillColor(float c, float m, float y, float k, float a);
149 149
150 void beginPath(); 150 void beginPath();
151 151
152 PassRefPtr<Path2D> currentPath(); 152 PassRefPtr<Path2D> currentPath();
153 void setCurrentPath(Path2D*); 153 void setCurrentPath(Path2D*);
154 void fill(const String& winding = "nonzero"); 154 void fill(const String& winding = "nonzero");
155 void fill(Path2D*, ExceptionState&); 155 void fill(Path2D*);
156 void fill(Path2D*, const String& winding, ExceptionState&); 156 void fill(Path2D*, const String& winding);
157 void stroke(); 157 void stroke();
158 void stroke(Path2D*, ExceptionState&); 158 void stroke(Path2D*);
159 void clip(const String& winding = "nonzero"); 159 void clip(const String& winding = "nonzero");
160 void clip(Path2D*, ExceptionState&); 160 void clip(Path2D*);
161 void clip(Path2D*, const String& winding, ExceptionState&); 161 void clip(Path2D*, const String& winding);
162 162
163 bool isPointInPath(const float x, const float y, const String& winding = "no nzero"); 163 bool isPointInPath(const float x, const float y, const String& winding = "no nzero");
164 bool isPointInPath(Path2D*, const float x, const float y, ExceptionState&); 164 bool isPointInPath(Path2D*, const float x, const float y);
165 bool isPointInPath(Path2D*, const float x, const float y, const String& wind ing, ExceptionState&); 165 bool isPointInPath(Path2D*, const float x, const float y, const String& wind ing);
166 bool isPointInStroke(const float x, const float y); 166 bool isPointInStroke(const float x, const float y);
167 bool isPointInStroke(Path2D*, const float x, const float y, ExceptionState&) ; 167 bool isPointInStroke(Path2D*, const float x, const float y);
168 168
169 void scrollPathIntoView(); 169 void scrollPathIntoView();
170 void scrollPathIntoView(Path2D*, ExceptionState&); 170 void scrollPathIntoView(Path2D*);
171 171
172 void clearRect(float x, float y, float width, float height); 172 void clearRect(float x, float y, float width, float height);
173 void fillRect(float x, float y, float width, float height); 173 void fillRect(float x, float y, float width, float height);
174 void strokeRect(float x, float y, float width, float height); 174 void strokeRect(float x, float y, float width, float height);
175 175
176 void setShadow(float width, float height, float blur); 176 void setShadow(float width, float height, float blur);
177 void setShadow(float width, float height, float blur, const String& color); 177 void setShadow(float width, float height, float blur, const String& color);
178 void setShadow(float width, float height, float blur, float grayLevel); 178 void setShadow(float width, float height, float blur, float grayLevel);
179 void setShadow(float width, float height, float blur, const String& color, f loat alpha); 179 void setShadow(float width, float height, float blur, const String& color, f loat alpha);
180 void setShadow(float width, float height, float blur, float grayLevel, float alpha); 180 void setShadow(float width, float height, float blur, float grayLevel, float alpha);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
359 }; 359 };
360 360
361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
362 362
363 } // namespace WebCore 363 } // namespace WebCore
364 364
365 #endif 365 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698