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

Unified Diff: samples/ui_lib/view/view.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « samples/ui_lib/view/MeasureText.dart ('k') | samples/webcomponents/shadow_polyfill.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/view/view.dart
diff --git a/samples/ui_lib/view/view.dart b/samples/ui_lib/view/view.dart
index c399c10a63848c4bb35131f4e21108a7135c8035..52f0765251280d3e1003cbd07a7fa663a02b43c3 100644
--- a/samples/ui_lib/view/view.dart
+++ b/samples/ui_lib/view/view.dart
@@ -54,7 +54,7 @@ class View implements Positionable {
// TODO(rnystrom): Get rid of this when all views are refactored to not use
// it.
- Element get node() {
+ Element get node {
// Lazy render.
if (_node === null) {
_render();
@@ -69,7 +69,7 @@ class View implements Positionable {
* and initialized when their parent view is without the parent having to
* manually handle that traversal.
*/
- Collection<View> get childViews() {
+ Collection<View> get childViews {
return const [];
}
@@ -101,7 +101,7 @@ class View implements Positionable {
}
/** Gets whether this View has already been rendered or not. */
- bool get isRendered() {
+ bool get isRendered {
return _node !== null;
}
@@ -109,7 +109,7 @@ class View implements Positionable {
* Gets whether this View (or one of its parents) has been added to the
* document or not.
*/
- bool get isInDocument() {
+ bool get isInDocument {
return _node !== null && node.document.body.contains(node);
}
@@ -206,7 +206,7 @@ class View implements Positionable {
/**
* Gets whether the view is hidden.
*/
- bool get hidden() => _node.style.display == 'none';
+ bool get hidden => _node.style.display == 'none';
/**
* Sets whether the view is hidden.
@@ -275,7 +275,7 @@ class View implements Positionable {
// Layout related methods
- ViewLayout get layout() {
+ ViewLayout get layout {
if (_layout == null) {
_layout = new ViewLayout.fromView(this);
}
« no previous file with comments | « samples/ui_lib/view/MeasureText.dart ('k') | samples/webcomponents/shadow_polyfill.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698