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

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

Issue 10928139: Changed interfaces to abstract classes where possible in {lib,samples,pkg} (Closed) Base URL: http://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
Index: samples/ui_lib/observable/observable.dart
===================================================================
--- samples/ui_lib/observable/observable.dart (revision 12252)
+++ samples/ui_lib/observable/observable.dart (working copy)
@@ -13,16 +13,16 @@
* An object whose changes are tracked and who can issue events notifying how it
* has been changed.
*/
-interface Observable {
+abstract class Observable {
/** Returns a globally unique identifier for the object. */
// TODO(sigmund): remove once dart supports maps with arbitrary keys.
- final int uid;
+ int get uid;
/** Listeners on this model. */
- final List<ChangeListener> listeners;
+ List<ChangeListener> get listeners;
/** The parent observable to notify when this child is changed. */
- final Observable parent;
+ Observable get parent;
/**
* Adds a listener for changes on this observable instance. Returns whether

Powered by Google App Engine
This is Rietveld 408576698