Commit fd14a1d0 authored by Hixie's avatar Hixie

[Effen] s/Node/UINode/, s/Element/WrapperNode/, s/EventTarget/EventListenerNode/

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1043283003
parent 362f8193
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'package:sky/framework/fn.dart'; import 'package:sky/framework/fn.dart';
class HelloWorldApp extends App { class HelloWorldApp extends App {
Node build() { UINode build() {
return new Text('Hello, world!'); return new Text('Hello, world!');
} }
} }
...@@ -112,7 +112,7 @@ class StocksApp extends App { ...@@ -112,7 +112,7 @@ class StocksApp extends App {
); );
} }
Node buildActionBar() { UINode buildActionBar() {
return new StyleNode( return new StyleNode(
new ActionBar( new ActionBar(
left: new IconButton( left: new IconButton(
...@@ -133,7 +133,7 @@ class StocksApp extends App { ...@@ -133,7 +133,7 @@ class StocksApp extends App {
} }
// TODO(abarth): Should we factor this into a SearchBar in the framework? // TODO(abarth): Should we factor this into a SearchBar in the framework?
Node buildSearchBar() { UINode buildSearchBar() {
return new StyleNode( return new StyleNode(
new ActionBar( new ActionBar(
left: new IconButton( left: new IconButton(
...@@ -146,7 +146,7 @@ class StocksApp extends App { ...@@ -146,7 +146,7 @@ class StocksApp extends App {
_searchBarStyle); _searchBarStyle);
} }
void addMenuToOverlays(List<Node> overlays) { void addMenuToOverlays(List<UINode> overlays) {
if (_menuController == null) if (_menuController == null)
return; return;
overlays.add(new ModalOverlay( overlays.add(new ModalOverlay(
...@@ -154,8 +154,8 @@ class StocksApp extends App { ...@@ -154,8 +154,8 @@ class StocksApp extends App {
onDismiss: _handleMenuHide)); onDismiss: _handleMenuHide));
} }
Node build() { UINode build() {
List<Node> overlays = []; List<UINode> overlays = [];
addMenuToOverlays(overlays); addMenuToOverlays(overlays);
return new Scaffold( return new Scaffold(
......
...@@ -73,7 +73,7 @@ class StockArrow extends Component { ...@@ -73,7 +73,7 @@ class StockArrow extends Component {
return _kRedColors[_colorIndexForPercentChange(percentChange)]; return _kRedColors[_colorIndexForPercentChange(percentChange)];
} }
Node build() { UINode build() {
String border = _colorForPercentChange(percentChange).toString(); String border = _colorForPercentChange(percentChange).toString();
bool up = percentChange > 0; bool up = percentChange > 0;
String type = up ? 'bottom' : 'top'; String type = up ? 'bottom' : 'top';
......
...@@ -18,7 +18,7 @@ class Stocklist extends FixedHeightScrollable { ...@@ -18,7 +18,7 @@ class Stocklist extends FixedHeightScrollable {
this.query this.query
}) : super(key: key, scrollBehavior: new OverscrollBehavior()); }) : super(key: key, scrollBehavior: new OverscrollBehavior());
List<Node> buildItems(int start, int count) { List<UINode> buildItems(int start, int count) {
return stocks return stocks
.skip(start) .skip(start)
.where((stock) => query == null || stock.symbol.contains( .where((stock) => query == null || stock.symbol.contains(
......
...@@ -16,7 +16,7 @@ class StockMenu extends Component { ...@@ -16,7 +16,7 @@ class StockMenu extends Component {
StockMenu({Object key, this.controller}) : super(key: key); StockMenu({Object key, this.controller}) : super(key: key);
Node build() { UINode build() {
return new StyleNode( return new StyleNode(
new PopupMenu( new PopupMenu(
controller: controller, controller: controller,
......
...@@ -39,14 +39,14 @@ class StockRow extends Component { ...@@ -39,14 +39,14 @@ class StockRow extends Component {
this.stock = stock; this.stock = stock;
} }
Node build() { UINode build() {
String lastSale = "\$${stock.lastSale.toStringAsFixed(2)}"; String lastSale = "\$${stock.lastSale.toStringAsFixed(2)}";
String changeInPrice = "${stock.percentChange.toStringAsFixed(2)}%"; String changeInPrice = "${stock.percentChange.toStringAsFixed(2)}%";
if (stock.percentChange > 0) if (stock.percentChange > 0)
changeInPrice = "+" + changeInPrice; changeInPrice = "+" + changeInPrice;
List<Node> children = [ List<UINode> children = [
new StockArrow( new StockArrow(
percentChange: stock.percentChange percentChange: stock.percentChange
), ),
......
...@@ -13,7 +13,7 @@ class WidgetsApp extends App { ...@@ -13,7 +13,7 @@ class WidgetsApp extends App {
top: 200px; top: 200px;
left: 200px;'''); left: 200px;''');
Node build() { UINode build() {
return new Container( return new Container(
children: [ children: [
new Button(key: 'Go', content: new Text('Go'), level: 1), new Button(key: 'Go', content: new Text('Go'), level: 1),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment