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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.dart

Issue 50413005: Reapply "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 message_viewer_element; 5 library message_viewer_element;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'package:polymer/polymer.dart';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 9
10 @CustomTag('message-viewer') 10 @CustomTag('message-viewer')
11 class MessageViewerElement extends ObservatoryElement { 11 class MessageViewerElement extends ObservatoryElement {
12 Map _message; 12 Map _message;
13 @published Map get message => _message; 13 @published Map get message => _message;
14 14
15 @published set message(Map m) { 15 @published set message(Map m) {
16 _message = m; 16 _message = m;
17 notifyProperty(this, #messageType); 17 this.notifyPropertyChange(#messageType, null, null);
18 notifyProperty(this, #members); 18 this.notifyPropertyChange(#members, null, null);
19 } 19 }
20 20
21 String get messageType { 21 String get messageType {
22 if (message == null || message['type'] == null) { 22 if (message == null || message['type'] == null) {
23 return 'Error'; 23 return 'Error';
24 } 24 }
25 return message['type']; 25 return message['type'];
26 } 26 }
27 27
28 List<Map> get members { 28 List<Map> get members {
29 if (message == null || message['members'] == null) { 29 if (message == null || message['members'] == null) {
30 return []; 30 return [];
31 } 31 }
32 return message['members']; 32 return message['members'];
33 } 33 }
34 } 34 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/observatory_elements/json_view.dart ('k') | samples/build_dart/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698