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

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

Issue 215213003: Rework the <field-view> page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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:math'; 7 import 'dart:math';
8 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
9 9
10 /// Base class for all Observatory custom elements. 10 /// Base class for all Observatory custom elements.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 bool isString(String type) { 143 bool isString(String type) {
144 return type == 'String'; 144 return type == 'String';
145 } 145 }
146 146
147 bool isInstance(String type) { 147 bool isInstance(String type) {
148 return type == 'Instance'; 148 return type == 'Instance';
149 } 149 }
150 150
151 bool isClosure(String type) {
152 return type == 'Closure';
153 }
154
155 bool isDouble(String type) { 151 bool isDouble(String type) {
156 return type == 'Double'; 152 return type == 'Double';
157 } 153 }
158 154
159 bool isList(String type) { 155 bool isList(String type) {
160 return (type == 'GrowableObjectArray' || 156 return (type == 'GrowableObjectArray' ||
161 type == 'Array'); 157 type == 'Array');
162 } 158 }
163 159
164 bool isType(String type) { 160 bool isType(String type) {
165 return (type == 'Type'); 161 return (type == 'Type');
166 } 162 }
167 163
168 bool isUnexpected(String type) { 164 bool isUnexpected(String type) {
169 return (!['Null', 165 return (!['Null',
170 'Smi', 166 'Smi',
171 'Mint', 167 'Mint',
172 'Biginit', 168 'Biginit',
173 'Bool', 169 'Bool',
174 'String', 170 'String',
175 'Closure',
176 'Double', 171 'Double',
177 'Instance', 172 'Instance',
178 'GrowableObjectArray', 173 'GrowableObjectArray',
179 'Array', 174 'Array',
180 'Type', 175 'Type',
181 'Error'].contains(type)); 176 'Error'].contains(type));
182 } 177 }
183 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698