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

Side by Side Diff: dart/pkg/polymer/lib/polymer.dart

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « dart/pkg/polymer/lib/auto_binding.dart ('k') | dart/pkg/polymer/lib/polymer.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) 2012, 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 /// Custom HTML tags, data binding, and templates for building 5 /// Custom HTML tags, data binding, and templates for building
6 /// structured, encapsulated, client-side web apps. 6 /// structured, encapsulated, client-side web apps.
7 /// 7 ///
8 /// Polymer.dart, the next evolution of Web UI, 8 /// Polymer.dart, the next evolution of Web UI,
9 /// is an in-progress Dart port of the 9 /// is an in-progress Dart port of the
10 /// [Polymer project](http://www.polymer-project.org/). 10 /// [Polymer project](http://www.polymer-project.org/).
11 /// Polymer.dart compiles to JavaScript and runs across the modern web. 11 /// Polymer.dart compiles to JavaScript and runs across the modern web.
(...skipping 18 matching lines...) Expand all
30 /// Example code, project status, and 30 /// Example code, project status, and
31 /// information about how to get started using Polymer.dart in your apps. 31 /// information about how to get started using Polymer.dart in your apps.
32 /// 32 ///
33 /// * [polymer.dart package](http://pub.dartlang.org/packages/polymer): 33 /// * [polymer.dart package](http://pub.dartlang.org/packages/polymer):
34 /// More details, such as the current major release number. 34 /// More details, such as the current major release number.
35 /// 35 ///
36 /// * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading -to-polymer-from-web-ui.html): 36 /// * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading -to-polymer-from-web-ui.html):
37 /// Tips for converting your apps from Web UI to Polymer.dart. 37 /// Tips for converting your apps from Web UI to Polymer.dart.
38 library polymer; 38 library polymer;
39 39
40 // Last ported from: 40 // Last ported from: Fri May 30 12:45:10 2014 -0700
41 // https://github.com/Polymer/polymer-dev/tree/37eea00e13b9f86ab21c85a955585e8e4 237e3d2 41 // https://github.com/Polymer/polymer-dev/tree/32cc3e470e8ed760a9e596a24fe9b3ac2 a87737c
42 // TODO(jmesserly): we need to do a redundancy check. Some code like the FOUC 42
43 // protection seems out of date, as if left over from the older 43 // Note: we are still missing some tests for new features. Use
44 // b7200854b2441a22ce89f6563963f36c50f5150d baseline. 44 // git diff 37eea00e13b9f86ab21c85a955585e8e4237e3d2 test
45 // from polymer-dev to see the changes.
45 46
46 import 'dart:async'; 47 import 'dart:async';
47 import 'dart:collection' show HashMap, HashSet; 48 import 'dart:collection';
48 import 'dart:html'; 49 import 'dart:html';
49 import 'dart:js' as js show context; 50 import 'dart:js' as js show context;
50 import 'dart:js' hide context; 51 import 'dart:js' hide context;
51 52
52 // *** Important Note *** 53 // *** Important Note ***
53 // This import is automatically replaced when calling pub build by the 54 // This import is automatically replaced when calling pub build by the
54 // mirrors_remover transformer. The transformer will remove any dependencies on 55 // mirrors_remover transformer. The transformer will remove any dependencies on
55 // dart:mirrors in deployed polymer apps. This and the import to 56 // dart:mirrors in deployed polymer apps. This and the import to
56 // mirror_loader.dart below should be updated in sync with changed in 57 // mirror_loader.dart below should be updated in sync with changed in
57 // lib/src/build/mirrors_remover.dart. 58 // lib/src/build/mirrors_remover.dart.
58 // 59 //
59 // Technically this annotation is not needed now that we have codegen for 60 // Technically this annotation is not needed now that we have codegen for
60 // expressions, but our test bots don't run pub-build yet. Until then, tests 61 // expressions, but our test bots don't run pub-build yet. Until then, tests
61 // might (transitively) have an import to smoke.mirrors, even though the code is 62 // might (transitively) have an import to smoke.mirrors, even though the code is
62 // completely dead. This @MirrorsUsed annotation helps reduce the load on our 63 // completely dead. This @MirrorsUsed annotation helps reduce the load on our
63 // bots. 64 // bots.
64 @MirrorsUsed(metaTargets: 65 @MirrorsUsed(metaTargets:
65 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, 66 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag,
66 ObserveProperty], 67 ObserveProperty],
67 targets: const [PublishedProperty, ObserveProperty], 68 targets: const [PublishedProperty, ObserveProperty],
68 override: const ['smoke.mirrors']) 69 override: const ['smoke.mirrors'])
69 import 'dart:mirrors' show MirrorsUsed; // ** see important note above 70 import 'dart:mirrors' show MirrorsUsed; // ** see important note above
70 71
71 import 'package:logging/logging.dart' show Logger, Level; 72 import 'package:logging/logging.dart' show Logger, Level;
72 import 'package:observe/observe.dart'; 73 import 'package:observe/observe.dart';
73 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; 74 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone;
74 import 'package:polymer_expressions/polymer_expressions.dart' 75 import 'package:polymer_expressions/polymer_expressions.dart'
75 show PolymerExpressions; 76 as polymer_expressions;
76 import 'package:smoke/smoke.dart' as smoke; 77 import 'package:smoke/smoke.dart' as smoke;
77 import 'package:template_binding/template_binding.dart'; 78 import 'package:template_binding/template_binding.dart';
78 79
80 import 'auto_binding.dart';
79 import 'deserialize.dart' as deserialize; 81 import 'deserialize.dart' as deserialize;
80 import 'src/mirror_loader.dart' as loader; // ** see important note above 82 import 'src/mirror_loader.dart' as loader; // ** see important note above
81 83
82 export 'package:observe/observe.dart'; 84 export 'package:observe/observe.dart';
83 export 'package:observe/html.dart'; 85 export 'package:observe/html.dart';
86 export 'auto_binding.dart';
84 87
85 part 'src/declaration.dart'; 88 part 'src/declaration.dart';
89 part 'src/events.dart';
86 part 'src/instance.dart'; 90 part 'src/instance.dart';
87 part 'src/job.dart'; 91 part 'src/job.dart';
88 part 'src/loader.dart'; 92 part 'src/loader.dart';
OLDNEW
« no previous file with comments | « dart/pkg/polymer/lib/auto_binding.dart ('k') | dart/pkg/polymer/lib/polymer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698