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

Issue 12395036: Adding Point & Rect primitives (Closed)

Created:
7 years, 9 months ago by blois
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Adding Point & Rect primitives For making DOM APIs more user-friendly, a number of them should be exposed as points and rects. Adding basic classes with a core set of useful methods. BUG= Committed: https://code.google.com/p/dart/source/detail?r=19577

Patch Set 1 : #

Total comments: 22

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Removing Rect's const constructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+884 lines, -0 lines) Patch
sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 2 chunks +204 lines, -0 lines 0 comments Download
sdk/lib/html/dartium/html_dartium.dart View 1 2 3 3 chunks +205 lines, -0 lines 0 comments Download
tests/html/point_test.dart View 1 1 chunk +106 lines, -0 lines 0 comments Download
tests/html/rect_test.dart View 1 3 1 chunk +158 lines, -0 lines 0 comments Download
tools/dom/src/Point.dart View 1 1 chunk +64 lines, -0 lines 0 comments Download
tools/dom/src/Rectangle.dart View 1 2 3 1 chunk +142 lines, -0 lines 0 comments Download
tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 1 chunk +2 lines, -0 lines 0 comments Download
tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
blois
Please take a look, let me know if you think the API is overkill or ...
7 years, 9 months ago (2013-03-05 02:08:51 UTC) #1
Jacob
Looks reasonable. I'd like to see all current cases where the DOM returns a point ...
7 years, 9 months ago (2013-03-05 02:20:21 UTC) #2
Jennifer Messerly
yeah, this LGTM but i'm also curious about how it's going to be used :) ...
7 years, 9 months ago (2013-03-05 02:35:21 UTC) #3
blois
Updated with review changes. I'm working on exposing exposing these as well, but the work ...
7 years, 9 months ago (2013-03-05 21:43:33 UTC) #4
blois
https://codereview.chromium.org/12395036/diff/20001/tools/dom/src/Rectangle.dart File tools/dom/src/Rectangle.dart (right): https://codereview.chromium.org/12395036/diff/20001/tools/dom/src/Rectangle.dart#newcode16 tools/dom/src/Rectangle.dart:16: const Rect(this.left, this.top, this.width, this.height); Made this constructor const ...
7 years, 9 months ago (2013-03-05 23:18:53 UTC) #5
Jennifer Messerly
https://codereview.chromium.org/12395036/diff/20001/tools/dom/src/Rectangle.dart File tools/dom/src/Rectangle.dart (right): https://codereview.chromium.org/12395036/diff/20001/tools/dom/src/Rectangle.dart#newcode16 tools/dom/src/Rectangle.dart:16: const Rect(this.left, this.top, this.width, this.height); On 2013/03/05 23:18:54, blois ...
7 years, 9 months ago (2013-03-05 23:43:08 UTC) #6
blois
7 years, 9 months ago (2013-03-06 19:20:12 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r19577 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698