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

Unified Diff: sky/examples/fn/widgets/button.dart

Issue 975863003: Don't hardcode the list of events types in fn (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: More careful event syncing Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/fn/lib/node.dart ('k') | sky/examples/fn/widgets/buttonbase.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/button.dart
diff --git a/sky/examples/fn/widgets/button.dart b/sky/examples/fn/widgets/button.dart
index ac7f62d62067af015d356c474139abe36d274e07..c7f53cac5baad6d88e0d631d57b205d8c2894fff 100644
--- a/sky/examples/fn/widgets/button.dart
+++ b/sky/examples/fn/widgets/button.dart
@@ -26,18 +26,13 @@ class Button extends ButtonBase {
);
Node content;
- sky.EventListener onClick;
- Button({ Object key, this.content, this.onClick }) : super(key: key);
+ Button({ Object key, this.content }) : super(key: key);
Node render() {
return new Container(
key: 'Button',
style: _highlight ? _highlightStyle : _style,
- onClick: onClick,
- onPointerDown: _handlePointerDown,
- onPointerUp: _handlePointerUp,
- onPointerCancel: _handlePointerCancel,
children: [super.render(), content]
);
}
« no previous file with comments | « sky/examples/fn/lib/node.dart ('k') | sky/examples/fn/widgets/buttonbase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698