Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // 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 |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library function_view_element; | 5 library objectstore_view_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'observatory_element.dart'; | 8 import 'observatory_element.dart'; |
| 9 import 'package:observatory/service.dart'; | 9 import 'package:observatory/service.dart'; |
| 10 | |
| 11 import 'package:polymer/polymer.dart'; | 10 import 'package:polymer/polymer.dart'; |
| 12 | 11 |
| 13 @CustomTag('function-view') | 12 |
| 14 class FunctionViewElement extends ObservatoryElement { | 13 @CustomTag('objectstore-view') |
| 15 @published ServiceFunction function; | 14 class ObjectStoreViewElement extends ObservatoryElement { |
| 16 FunctionViewElement.created() : super.created(); | 15 @published ObjectStore objectStore; |
| 16 | |
| 17 ObjectStoreViewElement.created() : super.created(); | |
| 17 | 18 |
| 18 Future refresh() { | 19 Future refresh() { |
| 19 return function.reload(); | 20 return objectStore.reload(); |
|
turnidge
2016/06/01 18:06:22
As discussed offline, this will need a bit of work
rmacnak
2016/06/01 19:58:46
Done.
| |
| 20 } | 21 } |
| 21 } | 22 } |
| OLD | NEW |