|
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
Total comments: 21
|
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
|
Total messages: 7 (1 generated)
|