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: packages/web_components/lib/interop.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 | « packages/web_components/lib/init.dart ('k') | packages/web_components/lib/interop_support.html » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Provides support for associating a Dart type for Javascript Custom Elements. 5 /// Provides support for associating a Dart type for Javascript Custom Elements.
6 /// This will not work unless `dart_support.js` is loaded. 6 /// This will not work unless `dart_support.js` is loaded.
7 library web_components.interop; 7 library web_components.interop;
8 8
9 import 'dart:html' show document, Element; 9 import 'dart:html' show document, Element;
10 import 'dart:js' show JsObject, JsFunction; 10 import 'dart:js' show JsObject, JsFunction;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 /// This function is mainly used to save resources. By default, we save a log of 44 /// This function is mainly used to save resources. By default, we save a log of
45 /// elements that are created but have no Dart type associated with them. This 45 /// elements that are created but have no Dart type associated with them. This
46 /// is so we can upgrade them as soon as [registerDartType] is invoked. This 46 /// is so we can upgrade them as soon as [registerDartType] is invoked. This
47 /// function can be called to indicate that we no longer are interested in 47 /// function can be called to indicate that we no longer are interested in
48 /// logging element creations and that it is sufficient to only upgrade new 48 /// logging element creations and that it is sufficient to only upgrade new
49 /// elements as they are being created. Typically this is called after the last 49 /// elements as they are being created. Typically this is called after the last
50 /// call to [registerDartType] or as soon as you know that no element will be 50 /// call to [registerDartType] or as soon as you know that no element will be
51 /// created until the call to [registerDartType] is made. 51 /// created until the call to [registerDartType] is made.
52 void onlyUpgradeNewElements() => _doc.callMethod('_onlyUpgradeNewElements'); 52 void onlyUpgradeNewElements() => _doc.callMethod('_onlyUpgradeNewElements');
OLDNEW
« no previous file with comments | « packages/web_components/lib/init.dart ('k') | packages/web_components/lib/interop_support.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698