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

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

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « pkg/polymer/lib/boot.js ('k') | 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) 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 /// 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/).
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 import 'dart:async'; 46 import 'dart:async';
47 import 'dart:collection' show HashMap, HashSet; 47 import 'dart:collection' show HashMap, HashSet;
48 import 'dart:html'; 48 import 'dart:html';
49 import 'dart:js' as js show context; 49 import 'dart:js' as js show context;
50 import 'dart:js' hide context; 50 import 'dart:js' hide context;
51 51
52 // *** Important Note *** 52 // *** Important Note ***
53 // This import is automatically replaced when calling pub build by the 53 // This import is automatically replaced when calling pub build by the
54 // mirrors_remover transformer. The transformer will remove any dependencies on 54 // mirrors_remover transformer. The transformer will remove any dependencies on
55 // dart:mirrors in deployed polymer apps. This should be updated in sync with 55 // dart:mirrors in deployed polymer apps. This and the import to
56 // changed in lib/src/build/mirrors_remover.dart. 56 // mirror_loader.dart below should be updated in sync with changed in
57 // lib/src/build/mirrors_remover.dart.
57 // 58 //
58 // Technically this annotation is not needed now that we have codegen for 59 // Technically this annotation is not needed now that we have codegen for
59 // expressions, but our test bots don't run pub-build yet. Until then, tests 60 // expressions, but our test bots don't run pub-build yet. Until then, tests
60 // might (transitively) have an import to smoke.mirrors, even though the code is 61 // might (transitively) have an import to smoke.mirrors, even though the code is
61 // completely dead. This @MirrorsUsed annotation helps reduce the load on our 62 // completely dead. This @MirrorsUsed annotation helps reduce the load on our
62 // bots. 63 // bots.
63 @MirrorsUsed(metaTargets: 64 @MirrorsUsed(metaTargets:
64 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, 65 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag,
65 ObserveProperty], 66 ObserveProperty],
66 targets: const [PublishedProperty, ObserveProperty], 67 targets: const [PublishedProperty, ObserveProperty],
67 override: const ['smoke.mirrors']) 68 override: const ['smoke.mirrors'])
68 import 'dart:mirrors' show MirrorsUsed; // ** see important note above 69 import 'dart:mirrors' show MirrorsUsed; // ** see important note above
69 70
70 import 'package:logging/logging.dart' show Logger, Level; 71 import 'package:logging/logging.dart' show Logger, Level;
71 import 'package:observe/observe.dart'; 72 import 'package:observe/observe.dart';
73 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone;
72 import 'package:polymer_expressions/polymer_expressions.dart' 74 import 'package:polymer_expressions/polymer_expressions.dart'
73 show PolymerExpressions; 75 show PolymerExpressions;
74 import 'package:smoke/smoke.dart' as smoke; 76 import 'package:smoke/smoke.dart' as smoke;
75 import 'package:template_binding/template_binding.dart'; 77 import 'package:template_binding/template_binding.dart';
76 78
77 import 'deserialize.dart' as deserialize; 79 import 'deserialize.dart' as deserialize;
80 import 'src/mirror_loader.dart' as loader; // ** see important note above
78 81
79 export 'package:observe/observe.dart'; 82 export 'package:observe/observe.dart';
80 export 'package:observe/html.dart'; 83 export 'package:observe/html.dart';
81 84
82 part 'src/declaration.dart'; 85 part 'src/declaration.dart';
83 part 'src/instance.dart'; 86 part 'src/instance.dart';
84 part 'src/job.dart'; 87 part 'src/job.dart';
85 part 'src/loader.dart'; 88 part 'src/loader.dart';
OLDNEW
« no previous file with comments | « pkg/polymer/lib/boot.js ('k') | pkg/polymer/lib/polymer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698