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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12049030: Initial commit for Chrome.* APIs in Dart (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 || libraryName == 'dart:async' 596 || libraryName == 'dart:async'
597 || libraryName == 'dart:chrome' 597 || libraryName == 'dart:chrome'
598 || libraryName == 'dart:mirrors' 598 || libraryName == 'dart:mirrors'
599 || libraryName == 'dart:math' 599 || libraryName == 'dart:math'
600 || libraryName == 'dart:html' 600 || libraryName == 'dart:html'
601 || libraryName == 'dart:html_common' 601 || libraryName == 'dart:html_common'
602 || libraryName == 'dart:indexed_db' 602 || libraryName == 'dart:indexed_db'
603 || libraryName == 'dart:svg' 603 || libraryName == 'dart:svg'
604 || libraryName == 'dart:web_audio') { 604 || libraryName == 'dart:web_audio') {
605 if (nativeTest 605 if (nativeTest
606 || libraryName == 'dart:chrome'
blois 2013/01/23 02:06:12 Probably want to break this out into a separate CL
sashab 2013/01/23 04:45:34 Done: https://codereview.chromium.org/12051031
606 || libraryName == 'dart:html' 607 || libraryName == 'dart:html'
607 || libraryName == 'dart:html_common' 608 || libraryName == 'dart:html_common'
608 || libraryName == 'dart:indexed_db' 609 || libraryName == 'dart:indexed_db'
609 || libraryName == 'dart:svg') { 610 || libraryName == 'dart:svg') {
610 // dart:html and dart:svg need access to convertDartClosureToJS and 611 // dart:html and dart:svg need access to convertDartClosureToJS and
611 // annotation classes. 612 // annotation classes.
612 // dart:mirrors needs access to the Primitives class. 613 // dart:mirrors needs access to the Primitives class.
613 importHelperLibrary(library); 614 importHelperLibrary(library);
614 } 615 }
615 library.addToScope( 616 library.addToScope(
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 // TODO(johnniwinther): Use [spannable] and [message] to provide better 1080 // TODO(johnniwinther): Use [spannable] and [message] to provide better
1080 // information on assertion errors. 1081 // information on assertion errors.
1081 if (condition is Function){ 1082 if (condition is Function){
1082 condition = condition(); 1083 condition = condition();
1083 } 1084 }
1084 if (spannable == null || !condition) { 1085 if (spannable == null || !condition) {
1085 throw new SpannableAssertionFailure(spannable, message); 1086 throw new SpannableAssertionFailure(spannable, message);
1086 } 1087 }
1087 return true; 1088 return true;
1088 } 1089 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/chrome/dart2js/chrome_dart2js.dart » ('j') | tools/dom/src/chrome/_utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698