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

Side by Side Diff: tools/dom/src/native_DOMImplementation.dart

Issue 166213002: Version 1.2.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 10 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of html; 5 part of html;
6 6
7 class _ConsoleVariables { 7 class _ConsoleVariables {
8 Map<String, Object> _data = new Map<String, Object>(); 8 Map<String, Object> _data = new Map<String, Object>();
9 9
10 /** 10 /**
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 LibraryMirror lib = cls.owner; 399 LibraryMirror lib = cls.owner;
400 String libName = lib.uri.toString(); 400 String libName = lib.uri.toString();
401 return libName.startsWith('dart:'); 401 return libName.startsWith('dart:');
402 } 402 }
403 403
404 static void register(Document document, String tag, Type type, 404 static void register(Document document, String tag, Type type,
405 String extendsTagName) { 405 String extendsTagName) {
406 // TODO(vsm): Move these checks into native code. 406 // TODO(vsm): Move these checks into native code.
407 ClassMirror cls = reflectClass(type); 407 ClassMirror cls = reflectClass(type);
408 if (_isBuiltinType(cls)) { 408 if (_isBuiltinType(cls)) {
409 throw new UnsupportedError("Invalid custom element from ${cls.owner.uri}." ); 409 throw new UnsupportedError("Invalid custom element from ${(cls.owner as Li braryMirror).uri}.");
410 } 410 }
411 var className = MirrorSystem.getName(cls.simpleName); 411 var className = MirrorSystem.getName(cls.simpleName);
412 var createdConstructor = cls.declarations[new Symbol('$className.created')]; 412 var createdConstructor = cls.declarations[new Symbol('$className.created')];
413 if (createdConstructor == null || 413 if (createdConstructor == null ||
414 createdConstructor is! MethodMirror || 414 createdConstructor is! MethodMirror ||
415 !createdConstructor.isConstructor) { 415 !createdConstructor.isConstructor) {
416 throw new UnsupportedError( 416 throw new UnsupportedError(
417 'Class is missing constructor $className.created'); 417 'Class is missing constructor $className.created');
418 } 418 }
419 419
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 _scheduleImmediateHelper._schedule(callback); 615 _scheduleImmediateHelper._schedule(callback);
616 }; 616 };
617 617
618 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 618 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
619 throw new UnimplementedError("scheduleMicrotask in background isolates " 619 throw new UnimplementedError("scheduleMicrotask in background isolates "
620 "are not supported in the browser")); 620 "are not supported in the browser"));
621 621
622 void _initializeCustomElement(Element e) { 622 void _initializeCustomElement(Element e) {
623 _Utils.initializeCustomElement(e); 623 _Utils.initializeCustomElement(e);
624 } 624 }
OLDNEW
« no previous file with comments | « tools/dom/src/dartium_KeyEvent.dart ('k') | tools/dom/templates/html/impl/impl_AbstractWorker.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698