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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/observatory_element.dart

Issue 340443006: Add support for asynchronous event notification to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 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 observatory_element; 5 library observatory_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:observatory/app.dart'; 8 import 'package:observatory/app.dart';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 10
11 /// Base class for all Observatory custom elements. 11 /// Base class for all Observatory custom elements.
12 @CustomTag('observatory-element') 12 @CustomTag('observatory-element')
13 class ObservatoryElement extends PolymerElement { 13 class ObservatoryElement extends PolymerElement {
14 ObservatoryElement.created() : super.created(); 14 ObservatoryElement.created() : super.created();
15 15
16 ObservatoryApplication get app => ObservatoryApplication.app;
17
16 @override 18 @override
17 void attached() { 19 void attached() {
18 super.attached(); 20 super.attached();
19 } 21 }
20 22
21 @override 23 @override
22 void attributeChanged(String name, var oldValue, var newValue) { 24 void attributeChanged(String name, var oldValue, var newValue) {
23 super.attributeChanged(name, oldValue, newValue); 25 super.attributeChanged(name, oldValue, newValue);
24 } 26 }
25 27
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 'Bool', 106 'Bool',
105 'String', 107 'String',
106 'Double', 108 'Double',
107 'Instance', 109 'Instance',
108 'GrowableObjectArray', 110 'GrowableObjectArray',
109 'Array', 111 'Array',
110 'Type', 112 'Type',
111 'Error'].contains(type)); 113 'Error'].contains(type));
112 } 114 }
113 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698