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

Unified Diff: sky/engine/core/painting/Size.dart

Issue 1146913005: Give the Stocks2 App a new improved toolbar. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | sky/examples/stocks2/lib/stock_app.dart » ('j') | sky/examples/stocks2/lib/stock_app.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Size.dart
diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart
index f2d43a65ca1b621bbf42bea715d00ada928bde12..2396cdd464e9407a1d63180fbb5f71028ecc05da 100644
--- a/sky/engine/core/painting/Size.dart
+++ b/sky/engine/core/painting/Size.dart
@@ -13,6 +13,9 @@ class Size {
const Size.infinite() : width = double.INFINITY, height = double.INFINITY;
+ const Size.onlyWidth(this.width) : height = 0.0;
+ const Size.onlyHeight(this.height) : width = 0.0;
abarth-chromium 2015/06/02 23:09:04 We don't want the other value to be null. Instead
+
bool operator ==(other) {
if (!(other is Size)) return false;
return width == other.width && height == other.height;
« no previous file with comments | « no previous file | sky/examples/stocks2/lib/stock_app.dart » ('j') | sky/examples/stocks2/lib/stock_app.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698