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

Issue 12775010: Added the CanvasImageSource interface, which all types that a canvas can draw (Closed)

Created:
7 years, 9 months ago by Andrei Mouravski
Modified:
7 years, 9 months ago
Reviewers:
Kathy Walrath, blois
CC:
reviews_dartlang.org, Kathy Walrath
Visibility:
Public.

Description

Added the CanvasImageSource interface, which all types that a canvas can draw with drawImage implements. Committed: https://code.google.com/p/dart/source/detail?r=20108

Patch Set 1 #

Total comments: 18

Patch Set 2 : Added docs and stuff. #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+672 lines, -26 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 8 chunks +127 lines, -6 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 6 chunks +124 lines, -10 lines 0 comments Download
M tests/html/canvasrenderingcontext2d_test.dart View 1 2 3 4 chunks +294 lines, -1 line 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 chunk +1 line, -0 lines 0 comments Download
A tools/dom/src/CanvasImageSource.dart View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate View 1 chunk +1 line, -1 line 0 comments Download
A + tools/dom/templates/html/impl/impl_HTMLImageElement.darttemplate View 1 chunk +1 line, -4 lines 0 comments Download
A + tools/dom/templates/html/impl/impl_HTMLVideoElement.darttemplate View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Andrei Mouravski
Documentation forthcoming.
7 years, 9 months ago (2013-03-14 03:10:15 UTC) #1
blois
https://codereview.chromium.org/12775010/diff/1/tests/html/canvasrenderingcontext2d_test.dart File tests/html/canvasrenderingcontext2d_test.dart (right): https://codereview.chromium.org/12775010/diff/1/tests/html/canvasrenderingcontext2d_test.dart#newcode348 tests/html/canvasrenderingcontext2d_test.dart:348: var mp4VideoUrl = What is the video and where ...
7 years, 9 months ago (2013-03-14 16:24:10 UTC) #2
Andrei Mouravski
PTAL. Maybe also take a look at docs, Kathy? https://codereview.chromium.org/12775010/diff/1/tests/html/canvasrenderingcontext2d_test.dart File tests/html/canvasrenderingcontext2d_test.dart (right): https://codereview.chromium.org/12775010/diff/1/tests/html/canvasrenderingcontext2d_test.dart#newcode348 tests/html/canvasrenderingcontext2d_test.dart:348: ...
7 years, 9 months ago (2013-03-15 00:08:52 UTC) #3
Kathy Walrath
lgtm A few nits, but it looks really good. https://codereview.chromium.org/12775010/diff/11001/sdk/lib/html/dart2js/html_dart2js.dart File sdk/lib/html/dart2js/html_dart2js.dart (right): https://codereview.chromium.org/12775010/diff/11001/sdk/lib/html/dart2js/html_dart2js.dart#newcode1487 sdk/lib/html/dart2js/html_dart2js.dart:1487: ...
7 years, 9 months ago (2013-03-15 17:23:06 UTC) #4
blois
one nit, but looking great. https://codereview.chromium.org/12775010/diff/11001/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate File tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate (right): https://codereview.chromium.org/12775010/diff/11001/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate#newcode127 tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate:127: {Rect sourceRectangle}) { I'd ...
7 years, 9 months ago (2013-03-15 18:05:30 UTC) #5
Andrei Mouravski
PTAL. https://codereview.chromium.org/12775010/diff/11001/sdk/lib/html/dart2js/html_dart2js.dart File sdk/lib/html/dart2js/html_dart2js.dart (right): https://codereview.chromium.org/12775010/diff/11001/sdk/lib/html/dart2js/html_dart2js.dart#newcode1487 sdk/lib/html/dart2js/html_dart2js.dart:1487: + * Draws an image from a [CanvasImageSource] ...
7 years, 9 months ago (2013-03-15 20:06:12 UTC) #6
blois
lgtm
7 years, 9 months ago (2013-03-15 20:25:16 UTC) #7
Kathy Walrath
lgtm
7 years, 9 months ago (2013-03-15 20:45:05 UTC) #8
Andrei Mouravski
7 years, 9 months ago (2013-03-15 20:55:03 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r20108 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698