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

Side by Side Diff: example/no_wrapper_fu/components/component_loader.dart

Issue 11465028: rename web_components -> web_ui (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 8 years 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 /** 5 /**
6 * Polyfill script for custom elements. To use this script, your app must 6 * Polyfill script for custom elements. To use this script, your app must
7 * create a CustomElementsManager with the appropriate lookup function before 7 * create a CustomElementsManager with the appropriate lookup function before
8 * doing any DOM queries or modifications. 8 * doing any DOM queries or modifications.
9 * Currently, all custom elements must be registered with the polyfill. To 9 * Currently, all custom elements must be registered with the polyfill. To
10 * register custom elements, provide the appropriate lookup function to your 10 * register custom elements, provide the appropriate lookup function to your
11 * CustomElementsManager. 11 * CustomElementsManager.
12 * 12 *
13 * This script does an XMLHTTP request, so to test using custom elements with 13 * This script does an XMLHTTP request, so to test using custom elements with
14 * file:// URLs you must run Chrome with `--allow-file-access-from-files`. 14 * file:// URLs you must run Chrome with `--allow-file-access-from-files`.
15 */ 15 */
16 library component_loader; 16 library component_loader;
17 17
18 import 'dart:html'; 18 import 'dart:html';
19 import 'package:web_components/web_components.dart'; 19 import 'package:web_ui/web_ui.dart';
20 import 'package:web_components/src/list_map.dart'; 20 import 'package:web_ui/src/list_map.dart';
21 21
22 /** Should we use prototype rewiring and the new WebComponent interface? */ 22 /** Should we use prototype rewiring and the new WebComponent interface? */
23 bool _usePrototypeRewiring; 23 bool _usePrototypeRewiring;
24 24
25 // typedefs 25 // typedefs
26 typedef WebComponent WebComponentFactory(); 26 typedef WebComponent WebComponentFactory();
27 typedef WebComponentFactory RegistryLookupFunction(String tagName); 27 typedef WebComponentFactory RegistryLookupFunction(String tagName);
28 28
29 // Globals 29 // Globals
30 final int REQUEST_DONE = 4; 30 final int REQUEST_DONE = 4;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 }); 349 });
350 attributeObserver.observe(e, attributes: true, attributeOldValue: true); 350 attributeObserver.observe(e, attributes: true, attributeOldValue: true);
351 351
352 // Listen for all insertions and deletions on the DOM so that we can 352 // Listen for all insertions and deletions on the DOM so that we can
353 // catch custom elements being inserted and call the appropriate callbacks. 353 // catch custom elements being inserted and call the appropriate callbacks.
354 manager.initializeInsertedRemovedCallbacks(shadowRoot); 354 manager.initializeInsertedRemovedCallbacks(shadowRoot);
355 return newCustomElement; 355 return newCustomElement;
356 } 356 }
357 } 357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698