| OLD | NEW |
| 1 part of swarmlib; | |
| 2 | |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 /** | 5 /** |
| 8 * The base class for UI state that intends to support browser history. | 6 * The base class for UI state that intends to support browser history. |
| 9 */ | 7 */ |
| 10 class UIState { | 8 class UIState { |
| 11 /** | 9 /** |
| 12 * The event listener we hook to the window's "popstate" event. | 10 * The event listener we hook to the window's "popstate" event. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 /** | 64 /** |
| 67 * Serialize the state to a form suitable for storing in browser history. | 65 * Serialize the state to a form suitable for storing in browser history. |
| 68 */ | 66 */ |
| 69 abstract Map<String, String> toHistory(); | 67 abstract Map<String, String> toHistory(); |
| 70 | 68 |
| 71 /** | 69 /** |
| 72 * Load the UI state from the given [values]. | 70 * Load the UI state from the given [values]. |
| 73 */ | 71 */ |
| 74 abstract void loadFromHistory(Map<String, String> values); | 72 abstract void loadFromHistory(Map<String, String> values); |
| 75 } | 73 } |
| OLD | NEW |