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

Issue 8363040: Implement measurement using futures (Closed)

Created:
9 years, 1 month ago by Jacob
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement measurement using promises BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1050

Patch Set 1 : take2 #

Total comments: 45

Patch Set 2 : Respond to all comments #

Total comments: 65

Patch Set 3 : Respond to all code review comments #

Total comments: 2

Patch Set 4 : couple more fixes #

Patch Set 5 : final #

Patch Set 6 : Remove duplicated imports from html.dart #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2558 lines, -2071 lines) Patch
A + client/base/Size.dart View 2 3 4 5 2 chunks +0 lines, -96 lines 0 comments Download
M client/base/base.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M client/dom/scripts/template_html.darttemplate View 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M client/html/html.dart View 1 2 3 4 5 3 chunks +14 lines, -14 lines 0 comments Download
M client/html/release/html.dart View 1 2 3 4 5 49 chunks +1032 lines, -855 lines 0 comments Download
M client/html/src/DOMWrapperBase.dart View 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M client/html/src/Document.dart View 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M client/html/src/DocumentFragmentWrappingImplementation.dart View 1 2 3 4 5 4 chunks +22 lines, -21 lines 0 comments Download
M client/html/src/DocumentWrappingImplementation.dart View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M client/html/src/Element.dart View 2 3 4 5 5 chunks +18 lines, -28 lines 0 comments Download
M client/html/src/ElementWrappingImplementation.dart View 1 2 3 4 5 5 chunks +127 lines, -46 lines 0 comments Download
M client/html/src/EventTargetWrappingImplementation.dart View 2 3 4 5 4 chunks +5 lines, -14 lines 0 comments Download
A client/html/src/Measurement.dart View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
M client/html/src/Window.dart View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M client/html/src/WindowWrappingImplementation.dart View 1 2 3 4 5 4 chunks +14 lines, -39 lines 0 comments Download
M client/layout/GridLayout.dart View 1 2 3 4 5 2 chunks +22 lines, -12 lines 0 comments Download
M client/layout/ViewLayout.dart View 1 2 3 4 5 8 chunks +23 lines, -11 lines 0 comments Download
M client/samples/dartcombat/views.dart View 1 2 3 4 5 3 chunks +68 lines, -60 lines 0 comments Download
M client/samples/swarm/App.dart View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M client/samples/swarm/SwarmViews.dart View 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M client/samples/swarm/Views.dart View 1 2 3 4 5 2 chunks +11 lines, -15 lines 0 comments Download
M client/samples/total/src/DomUtils.dart View 2 3 4 5 1 chunk +0 lines, -45 lines 0 comments Download
M client/samples/total/src/HtmlTable.dart View 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M client/samples/total/src/InnerMenuView.dart View 2 3 4 5 2 chunks +22 lines, -15 lines 0 comments Download
M client/samples/total/src/SelectionManager.dart View 1 2 3 4 5 4 chunks +31 lines, -20 lines 0 comments Download
M client/samples/total/src/SpreadsheetPresenter.dart View 1 2 3 4 5 8 chunks +128 lines, -115 lines 0 comments Download
M client/testing/unittest/shared.dart View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M client/tests/client/html/DocumentFragmentTests.dart View 2 3 4 5 4 chunks +49 lines, -42 lines 0 comments Download
A client/tests/client/html/ElementTests.dart View 1 2 3 4 5 1 chunk +382 lines, -0 lines 0 comments Download
A client/tests/client/html/MeasurementTests.dart View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M client/tests/client/html/html_tests.dart View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M client/tests/client/layout/GridLayoutDemo.dart View 1 2 3 4 5 1 chunk +18 lines, -10 lines 0 comments Download
M client/tests/client/layout/layout_tests.dart View 1 2 3 4 5 10 chunks +29 lines, -24 lines 0 comments Download
M client/tests/client/samples/dartcombat/dartcombat_tests.dart View 1 2 3 4 5 2 chunks +55 lines, -51 lines 0 comments Download
M client/tests/client/samples/swarm/swarm_tests.dart View 1 2 3 4 5 2 chunks +19 lines, -16 lines 0 comments Download
M client/tests/client/samples/total/total_tests.dart View 1 2 3 4 5 2 chunks +11 lines, -9 lines 0 comments Download
M client/touch/FxUtil.dart View 2 3 4 5 2 chunks +0 lines, -40 lines 0 comments Download
M client/touch/Geometry.dart View 2 3 4 5 1 chunk +2 lines, -145 lines 0 comments Download
M client/touch/Momentum.dart View 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M client/touch/ScrollWatcher.dart View 2 3 4 5 2 chunks +2 lines, -40 lines 0 comments Download
M client/touch/Scrollbar.dart View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M client/touch/Scroller.dart View 1 2 3 4 5 15 chunks +107 lines, -176 lines 0 comments Download
M client/view/PagedViews.dart View 2 3 4 5 4 chunks +94 lines, -75 lines 0 comments Download
M client/view/SliderMenu.dart View 2 3 4 5 1 chunk +9 lines, -3 lines 0 comments Download
M client/view/view.dart View 1 2 3 4 5 2 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jacob
Almost all DOM measurement is now performed Async using futures. All existing samples are updated ...
9 years, 1 month ago (2011-10-27 02:12:38 UTC) #1
arv (Not doing code reviews)
I'm off to dinner. I'll continue when I come back. http://codereview.chromium.org/8363040/diff/2012/client/html/src/DocumentFragmentWrappingImplementation.dart File client/html/src/DocumentFragmentWrappingImplementation.dart (right): http://codereview.chromium.org/8363040/diff/2012/client/html/src/DocumentFragmentWrappingImplementation.dart#newcode137 ...
9 years, 1 month ago (2011-10-27 03:16:13 UTC) #2
arv (Not doing code reviews)
This turned out better than I expected. I was very worried that the Futures would ...
9 years, 1 month ago (2011-10-27 05:50:24 UTC) #3
Jacob
Replied to all comments and uploaded a new version of the CL http://codereview.chromium.org/8363040/diff/2012/client/html/src/DocumentFragmentWrappingImplementation.dart File client/html/src/DocumentFragmentWrappingImplementation.dart ...
9 years, 1 month ago (2011-10-27 20:59:25 UTC) #4
Jacob
Some high level comments: The good: Switching to use futures in the existing client code ...
9 years, 1 month ago (2011-10-27 21:33:49 UTC) #5
Jacob
Some high level comments: The good: Switching to use futures in the existing client code ...
9 years, 1 month ago (2011-10-27 21:33:49 UTC) #6
nweiz
http://codereview.chromium.org/8363040/diff/8001/client/html/src/DOMWrapperBase.dart File client/html/src/DOMWrapperBase.dart (right): http://codereview.chromium.org/8363040/diff/8001/client/html/src/DOMWrapperBase.dart#newcode16 client/html/src/DOMWrapperBase.dart:16: unwrapDomObject(DOMWrapperBase wrapper) { Why not make this a method ...
9 years, 1 month ago (2011-10-28 03:58:38 UTC) #7
Jacob
PTAL http://codereview.chromium.org/8363040/diff/8001/client/html/src/DOMWrapperBase.dart File client/html/src/DOMWrapperBase.dart (right): http://codereview.chromium.org/8363040/diff/8001/client/html/src/DOMWrapperBase.dart#newcode16 client/html/src/DOMWrapperBase.dart:16: unwrapDomObject(DOMWrapperBase wrapper) { On 2011/10/28 03:58:38, nweiz wrote: ...
9 years, 1 month ago (2011-10-31 22:09:50 UTC) #8
nweiz
lgtm http://codereview.chromium.org/8363040/diff/8001/client/html/src/DocumentFragmentWrappingImplementation.dart File client/html/src/DocumentFragmentWrappingImplementation.dart (right): http://codereview.chromium.org/8363040/diff/8001/client/html/src/DocumentFragmentWrappingImplementation.dart#newcode141 client/html/src/DocumentFragmentWrappingImplementation.dart:141: final List<ClientRect> clientRects = const <SimpleClientRect>[]; On 2011/10/31 ...
9 years, 1 month ago (2011-11-01 00:49:22 UTC) #9
Jacob
http://codereview.chromium.org/8363040/diff/8001/client/html/src/DocumentFragmentWrappingImplementation.dart File client/html/src/DocumentFragmentWrappingImplementation.dart (right): http://codereview.chromium.org/8363040/diff/8001/client/html/src/DocumentFragmentWrappingImplementation.dart#newcode141 client/html/src/DocumentFragmentWrappingImplementation.dart:141: final List<ClientRect> clientRects = const <SimpleClientRect>[]; On 2011/11/01 00:49:22, ...
9 years, 1 month ago (2011-11-01 02:42:39 UTC) #10
Ben Laurie (Google)
9 years, 1 month ago (2011-11-02 12:29:17 UTC) #11
DBQ: I know we're planning to rename Promise to Future soon, but it seems you
have some other thing called a Future - what is it?

Powered by Google App Engine
This is Rietveld 408576698