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

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

Issue 189213003: Refactoring two pieces of polymer: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 /// 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // TODO(jmesserly): we need to do a redundancy check. Some code like the FOUC 42 // TODO(jmesserly): we need to do a redundancy check. Some code like the FOUC
43 // protection seems out of date, as if left over from the older 43 // protection seems out of date, as if left over from the older
44 // b7200854b2441a22ce89f6563963f36c50f5150d baseline. 44 // b7200854b2441a22ce89f6563963f36c50f5150d baseline.
45 45
46 import 'dart:async'; 46 import 'dart:async';
47 import 'dart:collection' show HashMap, HashSet, LinkedHashMap; 47 import 'dart:collection' show HashMap, HashSet, LinkedHashMap;
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 ***
53 // This import is automatically replaced when calling pub build by the
54 // mirrors_remover transformer. The transformer will remove any dependencies on
55 // 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 // lib/src/build/mirrors_remover.dart.
58 //
59 // Technically, if we have codegen for expressions we shouldn't need any
60 // @MirrorsUsed (since this is for development only), but our test bots don't
61 // run pub-build yet. Until then, polymer might be tested with mirror_loader
62 // instead of the static_loader, however the actual code there is practically
63 // dead ([initializers] will be set programatically with generated code
64 // anyways), but the @MirrorsUsed helps reduce the load on our bots.
52 @MirrorsUsed(metaTargets: 65 @MirrorsUsed(metaTargets:
53 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, 66 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag],
54 _InitMethodAnnotation],
55 targets: const [PublishedProperty], 67 targets: const [PublishedProperty],
56 override: const ['smoke.mirrors', 'polymer']) 68 override: const ['smoke.mirrors'])
57 import 'dart:mirrors'; 69 import 'dart:mirrors' show MirrorsUsed; // ** see important note above
58 70
59 import 'package:logging/logging.dart' show Logger, Level; 71 import 'package:logging/logging.dart' show Logger, Level;
60 import 'package:observe/observe.dart'; 72 import 'package:observe/observe.dart';
61 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; 73 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone;
62 import 'package:path/path.dart' as path; 74 import 'package:path/path.dart' as path;
63 import 'package:polymer_expressions/polymer_expressions.dart' 75 import 'package:polymer_expressions/polymer_expressions.dart'
64 show PolymerExpressions; 76 show PolymerExpressions;
65 import 'package:smoke/smoke.dart' as smoke; 77 import 'package:smoke/smoke.dart' as smoke;
66 import 'package:smoke/mirrors.dart' as smoke; 78 import 'package:smoke/mirrors.dart' as smoke;
67 import 'package:template_binding/template_binding.dart'; 79 import 'package:template_binding/template_binding.dart';
68 import 'package:web_components/polyfill.dart' show customElementsReady; 80 import 'package:web_components/polyfill.dart' show customElementsReady;
69 81
70 import 'deserialize.dart' as deserialize; 82 import 'deserialize.dart' as deserialize;
83 import 'src/mirror_loader.dart' as loader; // ** see important note above
71 84
72 export 'package:observe/observe.dart'; 85 export 'package:observe/observe.dart';
73 export 'package:observe/html.dart'; 86 export 'package:observe/html.dart';
74 87
75 part 'src/declaration.dart'; 88 part 'src/declaration.dart';
76 part 'src/instance.dart'; 89 part 'src/instance.dart';
77 part 'src/job.dart'; 90 part 'src/job.dart';
78 part 'src/loader.dart'; 91 part 'src/loader.dart';
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/lib/src/build/mirrors_remover.dart » ('j') | pkg/polymer/lib/src/build/mirrors_remover.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698