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

Issue 1019633004: Change how events are handled in Effen (Closed)

Created:
5 years, 9 months ago by rafaelw
Modified:
5 years, 9 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Change how events are handled in Effen This patch removes the mutable API to event handling (Nodes no longer have a events object with which to add listeners). Instead, a new (non-Render) Node is introduced: EventTarget. This node represents a location in the Effen tree which can handle events as they bubble. Note that this also changes the implementation to use event delegation (one set of listeners at the sky.document level) rather than direct listeners on leaf nodes. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/c7db4c71024f3df21475944da8752ec29484131c

Patch Set 1 #

Patch Set 2 : fixed bug #

Total comments: 21

Patch Set 3 : cr changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -159 lines) Patch
M sky/examples/stocks-fn/lib/stock_app.dart View 4 chunks +33 lines, -22 lines 0 comments Download
M sky/framework/components/button_base.dart View 1 chunk +11 lines, -4 lines 0 comments Download
M sky/framework/components/checkbox.dart View 1 chunk +17 lines, -16 lines 0 comments Download
M sky/framework/components/drawer.dart View 3 chunks +19 lines, -14 lines 0 comments Download
M sky/framework/components/fixed_height_scrollable.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/framework/components/material.dart View 2 chunks +10 lines, -9 lines 0 comments Download
M sky/framework/components/menu_item.dart View 1 chunk +1 line, -1 line 0 comments Download
M sky/framework/components/radio.dart View 1 chunk +8 lines, -7 lines 0 comments Download
M sky/framework/components/scrollable.dart View 1 chunk +15 lines, -8 lines 0 comments Download
M sky/framework/fn.dart View 1 2 9 chunks +129 lines, -77 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
rafaelw
5 years, 9 months ago (2015-03-19 06:04:13 UTC) #2
rafaelw
https://codereview.chromium.org/1019633004/diff/20001/sky/framework/components/button_base.dart File sky/framework/components/button_base.dart (right): https://codereview.chromium.org/1019633004/diff/20001/sky/framework/components/button_base.dart#newcode12 sky/framework/components/button_base.dart:12: Node buildContent(); I'm tempted to feel like this is ...
5 years, 9 months ago (2015-03-19 06:11:26 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/1019633004/diff/20001/sky/examples/stocks-fn/lib/stock_app.dart File sky/examples/stocks-fn/lib/stock_app.dart (right): https://codereview.chromium.org/1019633004/diff/20001/sky/examples/stocks-fn/lib/stock_app.dart#newcode61 sky/examples/stocks-fn/lib/stock_app.dart:61: _menuController = new PopupMenuController(); Interesting. I need to ...
5 years, 9 months ago (2015-03-19 14:19:59 UTC) #4
abarth-chromium
I guess the EventTarget can get re-used if its handed into a component and used ...
5 years, 9 months ago (2015-03-19 14:38:41 UTC) #5
rafaelw
https://codereview.chromium.org/1019633004/diff/20001/sky/framework/fn.dart File sky/framework/fn.dart (right): https://codereview.chromium.org/1019633004/diff/20001/sky/framework/fn.dart#newcode127 sky/framework/fn.dart:127: static Map<sky.Node, RenderNode> _nodeMap = On 2015/03/19 14:19:59, abarth ...
5 years, 9 months ago (2015-03-19 15:03:51 UTC) #6
rafaelw
5 years, 9 months ago (2015-03-19 15:05:00 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
c7db4c71024f3df21475944da8752ec29484131c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698