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

Unified Diff: samples/swarm/UIState.dart

Issue 11314019: Using 'interface' and 'abstract' for methods should produce error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/swarm/UIState.dart
diff --git a/samples/swarm/UIState.dart b/samples/swarm/UIState.dart
index b5a7c0acb63fee48aa693213e6961e02116d1f41..a9c9cdffdb9a65bdfa8c6e432397fcfbfc43f918 100644
--- a/samples/swarm/UIState.dart
+++ b/samples/swarm/UIState.dart
@@ -5,7 +5,7 @@
/**
* The base class for UI state that intends to support browser history.
*/
-class UIState {
+abstract class UIState {
/**
* The event listener we hook to the window's "popstate" event.
* This event is triggered by the back button or by the first page load.
@@ -64,10 +64,10 @@ class UIState {
/**
* Serialize the state to a form suitable for storing in browser history.
*/
- abstract Map<String, String> toHistory();
+ Map<String, String> toHistory();
/**
* Load the UI state from the given [values].
*/
- abstract void loadFromHistory(Map<String, String> values);
+ void loadFromHistory(Map<String, String> values);
}

Powered by Google App Engine
This is Rietveld 408576698