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

Side by Side Diff: lib/dart_interop.js

Issue 19235008: Rename package:js ports to avoid conflict with dart:js ones (Closed) Base URL: https://github.com/dart-lang/js-interop.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | lib/js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // THIS FILE IS AUTO GENERATED. PLEASE DO NOT EDIT. 5 // THIS FILE IS AUTO GENERATED. PLEASE DO NOT EDIT.
6 6
7 // TODO(vsm): Move this file once we determine where assets should go. See 7 // TODO(vsm): Move this file once we determine where assets should go. See
8 // http://dartbug.com/6101. 8 // http://dartbug.com/6101.
9 9
10 (function() { 10 (function() {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // Enters a new scope in the JavaScript context. 527 // Enters a new scope in the JavaScript context.
528 function enterJavaScriptScope() { 528 function enterJavaScriptScope() {
529 proxiedObjectTable.enterScope(); 529 proxiedObjectTable.enterScope();
530 } 530 }
531 531
532 // Enters a new scope in both the JavaScript and Dart context. 532 // Enters a new scope in both the JavaScript and Dart context.
533 var _dartEnterScopePort = null; 533 var _dartEnterScopePort = null;
534 function enterScope() { 534 function enterScope() {
535 enterJavaScriptScope(); 535 enterJavaScriptScope();
536 if (!_dartEnterScopePort) { 536 if (!_dartEnterScopePort) {
537 _dartEnterScopePort = window.lookupPort('js-dart-enter-scope'); 537 _dartEnterScopePort = window.lookupPort('js-dart-interop-enter-scope');
538 } 538 }
539 return _dartEnterScopePort.callSync([]); 539 return _dartEnterScopePort.callSync([]);
540 } 540 }
541 541
542 // Exits the current scope (and invalidate local IDs) in the JavaScript 542 // Exits the current scope (and invalidate local IDs) in the JavaScript
543 // context. 543 // context.
544 function exitJavaScriptScope() { 544 function exitJavaScriptScope() {
545 proxiedObjectTable.exitScope(); 545 proxiedObjectTable.exitScope();
546 } 546 }
547 547
548 // Exits the current scope in both the JavaScript and Dart context. 548 // Exits the current scope in both the JavaScript and Dart context.
549 var _dartExitScopePort = null; 549 var _dartExitScopePort = null;
550 function exitScope(depth) { 550 function exitScope(depth) {
551 exitJavaScriptScope(); 551 exitJavaScriptScope();
552 if (!_dartExitScopePort) { 552 if (!_dartExitScopePort) {
553 _dartExitScopePort = window.lookupPort('js-dart-exit-scope'); 553 _dartExitScopePort = window.lookupPort('js-dart-interop-exit-scope');
554 } 554 }
555 return _dartExitScopePort.callSync([ depth ]); 555 return _dartExitScopePort.callSync([ depth ]);
556 } 556 }
557 557
558 makeGlobalPort('dart-js-context', context); 558 makeGlobalPort('dart-js-interop-context', context);
559 makeGlobalPort('dart-js-create', construct); 559 makeGlobalPort('dart-js-interop-create', construct);
560 makeGlobalPort('dart-js-proxy-count', proxyCount); 560 makeGlobalPort('dart-js-interop-proxy-count', proxyCount);
561 makeGlobalPort('dart-js-equals', proxyEquals); 561 makeGlobalPort('dart-js-interop-equals', proxyEquals);
562 makeGlobalPort('dart-js-instanceof', proxyInstanceof); 562 makeGlobalPort('dart-js-interop-instanceof', proxyInstanceof);
563 makeGlobalPort('dart-js-has-property', proxyHasProperty); 563 makeGlobalPort('dart-js-interop-has-property', proxyHasProperty);
564 makeGlobalPort('dart-js-delete-property', proxyDeleteProperty); 564 makeGlobalPort('dart-js-interop-delete-property', proxyDeleteProperty);
565 makeGlobalPort('dart-js-convert', proxyConvert); 565 makeGlobalPort('dart-js-interop-convert', proxyConvert);
566 makeGlobalPort('dart-js-enter-scope', enterJavaScriptScope); 566 makeGlobalPort('dart-js-interop-enter-scope', enterJavaScriptScope);
567 makeGlobalPort('dart-js-exit-scope', exitJavaScriptScope); 567 makeGlobalPort('dart-js-interop-exit-scope', exitJavaScriptScope);
568 makeGlobalPort('dart-js-globalize', function(data) { 568 makeGlobalPort('dart-js-interop-globalize', function(data) {
569 if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.g lobalize(data[1]); 569 if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.g lobalize(data[1]);
570 throw 'Illegal type: ' + data[0]; 570 throw 'Illegal type: ' + data[0];
571 }); 571 });
572 makeGlobalPort('dart-js-invalidate', function(data) { 572 makeGlobalPort('dart-js-interop-invalidate', function(data) {
573 if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.i nvalidate(data[1]); 573 if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.i nvalidate(data[1]);
574 throw 'Illegal type: ' + data[0]; 574 throw 'Illegal type: ' + data[0];
575 }); 575 });
576 })(); 576 })();
OLDNEW
« no previous file with comments | « no previous file | lib/js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698