| Index: runtime/bin/vmservice/client/lib/src/elements/service_view.dart
|
| diff --git a/runtime/bin/vmservice/client/lib/src/elements/service_view.dart b/runtime/bin/vmservice/client/lib/src/elements/service_view.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..05cb26690fa9f425f737fa6626f36096ec542c6d
|
| --- /dev/null
|
| +++ b/runtime/bin/vmservice/client/lib/src/elements/service_view.dart
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +library service_object_view_element;
|
| +
|
| +import 'package:logging/logging.dart';
|
| +import 'package:observatory/service.dart';
|
| +import 'package:polymer/polymer.dart';
|
| +import 'observatory_element.dart';
|
| +
|
| +@CustomTag('service-view')
|
| +class ServiceObjectViewElement extends ObservatoryElement {
|
| + @published ServiceObject object;
|
| +
|
| + ServiceObjectViewElement.created() : super.created();
|
| +
|
| + objectChanged(oldValue) {
|
| + if (object == null) {
|
| + Logger.root.info('Message set to null.');
|
| + return;
|
| + }
|
| + Logger.root.info('Viewing object of type \'${object.serviceType}\'');
|
| + }
|
| +}
|
|
|