diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart index 49f8187c116..d63f67b2639 100644 --- a/sdk/lib/html/dart2js/html_dart2js.dart +++ b/sdk/lib/html/dart2js/html_dart2js.dart @@ -1,4 +1,4 @@ -library html; +library dart.dom.html; import 'dart:async'; import 'dart:collection'; diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart index 142ab760255..234dcf18bcc 100644 --- a/sdk/lib/html/dartium/html_dartium.dart +++ b/sdk/lib/html/dartium/html_dartium.dart @@ -1,4 +1,4 @@ -library html; +library dart.dom.html; import 'dart:async'; import 'dart:collection'; diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart index b93e64fad73..8a37de0d22b 100644 --- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart +++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart @@ -1,4 +1,4 @@ -library indexed_db; +library dart.dom.indexed_db; import 'dart:async'; import 'dart:html'; diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart index 61c5afd4e3b..184fb005c82 100644 --- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart +++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart @@ -1,4 +1,4 @@ -library indexed_db; +library dart.dom.indexed_db; import 'dart:async'; import 'dart:html'; diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart index cbb8320d53e..c49a2858254 100644 --- a/sdk/lib/svg/dart2js/svg_dart2js.dart +++ b/sdk/lib/svg/dart2js/svg_dart2js.dart @@ -1,4 +1,4 @@ -library svg; +library dart.dom.svg; import 'dart:async'; import 'dart:collection'; diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart index af4642ece86..e12bd91e945 100644 --- a/sdk/lib/svg/dartium/svg_dartium.dart +++ b/sdk/lib/svg/dartium/svg_dartium.dart @@ -1,4 +1,4 @@ -library svg; +library dart.dom.svg; import 'dart:async'; import 'dart:collection'; diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart index d8864929d83..44ba9d721ce 100644 --- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart +++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart @@ -1,4 +1,4 @@ -library web_audio; +library dart.dom.web_audio; import 'dart:async'; import 'dart:collection'; diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart index 66bf9c15922..a8b0dd5b9fb 100644 --- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart +++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart @@ -1,4 +1,4 @@ -library web_audio; +library dart.dom.web_audio; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json index a772b84da8e..a575f97f08f 100644 --- a/tools/dom/docs/docs.json +++ b/tools/dom/docs/docs.json @@ -1,5 +1,5 @@ { - "html": { + "dart.dom.html": { "CanvasGradient": { "comment": [ "/**", @@ -212,4 +212,4 @@ } } } -} +} \ No newline at end of file diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py index 869c4af0257..65694934863 100644 --- a/tools/dom/scripts/generator.py +++ b/tools/dom/scripts/generator.py @@ -830,7 +830,7 @@ def GetComments(interface_name, member_name=None, library_name=None): # Add documentation from JSON. comments = [] - + library_name = 'dart.dom.%s' % library_name if library_name in _dom_json and interface_name in _dom_json[library_name]: if member_name and (member_name in _dom_json[library_name][interface_name]['members']): diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py index 235733cc321..36cf9e55d2a 100644 --- a/tools/dom/scripts/systemhtml.py +++ b/tools/dom/scripts/systemhtml.py @@ -335,6 +335,7 @@ class HtmlDartInterfaceGenerator(object): typedef_name = self._renamer.RenameInterface(self._interface) code.Emit('typedef void $NAME($PARAMS);\n', + LIBRARYNAME='dart.dom.%s' % self._library_name, NAME=typedef_name, PARAMS=info.ParametersDeclaration(self._DartType)) self._backend.GenerateCallback(info) @@ -411,7 +412,7 @@ class HtmlDartInterfaceGenerator(object): self._implementation_members_emitter = implementation_emitter.Emit( self._backend.ImplementationTemplate(), - LIBRARYNAME=self._library_name, + LIBRARYNAME='dart.dom.%s' % self._library_name, ANNOTATIONS=annotations, CLASSNAME=self._interface_type_info.implementation_name(), EXTENDS=' extends %s' % base_class if base_class else '', diff --git a/tools/dom/templates/callback.darttemplate b/tools/dom/templates/callback.darttemplate index 9ffc66926aa..5c891ce34ea 100644 --- a/tools/dom/templates/callback.darttemplate +++ b/tools/dom/templates/callback.darttemplate @@ -4,6 +4,6 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; //$ Keep previous blank line when editor removes trailing empty lines. diff --git a/tools/dom/templates/html/dart2js/html_dart2js.darttemplate b/tools/dom/templates/html/dart2js/html_dart2js.darttemplate index e7ce0b3f58c..f87c1b2cb79 100644 --- a/tools/dom/templates/html/dart2js/html_dart2js.darttemplate +++ b/tools/dom/templates/html/dart2js/html_dart2js.darttemplate @@ -5,7 +5,7 @@ // DO NOT EDIT // Auto-generated dart:html library. -library html; +library dart.dom.html; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate b/tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate index e67365cbaa2..36529bba49d 100644 --- a/tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of web_audio; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/dart2js/impl_Console.darttemplate b/tools/dom/templates/html/dart2js/impl_Console.darttemplate index eb4f5e52ac4..dbd7bc39990 100644 --- a/tools/dom/templates/html/dart2js/impl_Console.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_Console.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class Console { diff --git a/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate b/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate index dd355c64ef7..3e82f583024 100644 --- a/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; @deprecated class $CLASSNAME extends $SUPER { diff --git a/tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate b/tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate index 261fffdb2e6..52f7436c9dc 100644 --- a/tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate b/tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate index e2b870c245a..cc7154d66db 100644 --- a/tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of indexed_db; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate index ed29b0f3f15..7ca2b2600fc 100644 --- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/dart2js/impl_URL.darttemplate b/tools/dom/templates/html/dart2js/impl_URL.darttemplate index 8188c31ba42..1a02aa118fb 100644 --- a/tools/dom/templates/html/dart2js/impl_URL.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_URL.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/dart2js/impl_Window.darttemplate b/tools/dom/templates/html/dart2js/impl_Window.darttemplate index 1d7058681c2..1f74f224a89 100644 --- a/tools/dom/templates/html/dart2js/impl_Window.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_Window.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { diff --git a/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate b/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate index 446191733ae..27275bf5afa 100644 --- a/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate +++ b/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate b/tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate index 8dc5ad512d9..cf7542fe123 100644 --- a/tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate +++ b/tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate @@ -5,7 +5,7 @@ // DO NOT EDIT // Auto-generated dart:svg library. -library indexed_db; +library dart.dom.indexed_db; import 'dart:async'; import 'dart:html'; diff --git a/tools/dom/templates/html/dart2js/svg_dart2js.darttemplate b/tools/dom/templates/html/dart2js/svg_dart2js.darttemplate index 2f4e9f017f7..d9079985270 100644 --- a/tools/dom/templates/html/dart2js/svg_dart2js.darttemplate +++ b/tools/dom/templates/html/dart2js/svg_dart2js.darttemplate @@ -1,7 +1,7 @@ // DO NOT EDIT // Auto-generated dart:svg library. -library svg; +library dart.dom.svg; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate b/tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate index 185e9503ac3..17c774affbe 100644 --- a/tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate +++ b/tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate @@ -1,7 +1,7 @@ // DO NOT EDIT // Auto-generated dart:audio library. -library web_audio; +library dart.dom.web_audio; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate index e51e3084999..3445f6b2025 100644 --- a/tools/dom/templates/html/dartium/html_dartium.darttemplate +++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate @@ -5,7 +5,7 @@ // DO NOT EDIT // Auto-generated dart:html library. -library html; +library dart.dom.html; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate index d3de5856d93..bb1be2ccb13 100644 --- a/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate +++ b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/dartium/impl_Window.darttemplate b/tools/dom/templates/html/dartium/impl_Window.darttemplate index 254d47270ca..3c4125be478 100644 --- a/tools/dom/templates/html/dartium/impl_Window.darttemplate +++ b/tools/dom/templates/html/dartium/impl_Window.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate b/tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate index 47a34338d3c..34e1d232882 100644 --- a/tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate +++ b/tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate @@ -5,7 +5,7 @@ // DO NOT EDIT // Auto-generated dart:indexed_db library. -library indexed_db; +library dart.dom.indexed_db; import 'dart:async'; import 'dart:html'; diff --git a/tools/dom/templates/html/dartium/svg_dartium.darttemplate b/tools/dom/templates/html/dartium/svg_dartium.darttemplate index b223c2232f9..13f2891aa04 100644 --- a/tools/dom/templates/html/dartium/svg_dartium.darttemplate +++ b/tools/dom/templates/html/dartium/svg_dartium.darttemplate @@ -1,7 +1,7 @@ // DO NOT EDIT // Auto-generated dart:svg library. -library svg; +library dart.dom.svg; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/dartium/web_audio_dartium.darttemplate b/tools/dom/templates/html/dartium/web_audio_dartium.darttemplate index a08b572be3a..b6319de0f64 100644 --- a/tools/dom/templates/html/dartium/web_audio_dartium.darttemplate +++ b/tools/dom/templates/html/dartium/web_audio_dartium.darttemplate @@ -1,7 +1,7 @@ // DO NOT EDIT // Auto-generated dart:audio library. -library web_audio; +library dart.dom.web_audio; import 'dart:async'; import 'dart:collection'; diff --git a/tools/dom/templates/html/impl/impl_Blob.darttemplate b/tools/dom/templates/html/impl/impl_Blob.darttemplate index d45ebf96c52..022b6de2b03 100644 --- a/tools/dom/templates/html/impl/impl_Blob.darttemplate +++ b/tools/dom/templates/html/impl/impl_Blob.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate index 0212570b621..67152b1fadb 100644 --- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate +++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; String _cachedBrowserPrefix; diff --git a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate index fb76557b2ca..e26e050f858 100644 --- a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate +++ b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate index 64b5298ae11..c190a861ec0 100644 --- a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate index 2d2b6c0a8dd..e568a099fed 100644 --- a/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_DOMException.darttemplate b/tools/dom/templates/html/impl/impl_DOMException.darttemplate index 07aacbb57ae..593fd4ce3c1 100644 --- a/tools/dom/templates/html/impl/impl_DOMException.darttemplate +++ b/tools/dom/templates/html/impl/impl_DOMException.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; /// @domName $DOMNAME class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate b/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate index 221c014f122..e61395958f2 100644 --- a/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $ANNOTATIONS class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate index f707aac0a96..ad71764c785 100644 --- a/tools/dom/templates/html/impl/impl_Document.darttemplate +++ b/tools/dom/templates/html/impl/impl_Document.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; /** * The base class for all documents. diff --git a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate index d9af15063ee..13edffbf713 100644 --- a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate +++ b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate index aac9b24df34..340774cfb7c 100644 --- a/tools/dom/templates/html/impl/impl_Element.darttemplate +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; // TODO(jacobr): use _Lists.dart to remove some of the duplicated // functionality. diff --git a/tools/dom/templates/html/impl/impl_Event.darttemplate b/tools/dom/templates/html/impl/impl_Event.darttemplate index b9b7b4ce55c..70c340a424c 100644 --- a/tools/dom/templates/html/impl/impl_Event.darttemplate +++ b/tools/dom/templates/html/impl/impl_Event.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { // In JS, canBubble and cancelable are technically required parameters to diff --git a/tools/dom/templates/html/impl/impl_EventTarget.darttemplate b/tools/dom/templates/html/impl/impl_EventTarget.darttemplate index f0bf5ceab05..e0ff57ed231 100644 --- a/tools/dom/templates/html/impl/impl_EventTarget.darttemplate +++ b/tools/dom/templates/html/impl/impl_EventTarget.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; /** * Base class that supports listening for and dispatching browser events. diff --git a/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate index d25abfb0955..699a3287009 100644 --- a/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate +++ b/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate index 422278ac19c..c64f11a3073 100644 --- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate +++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate index e2153911107..0f378abaf9a 100644 --- a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate +++ b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_HashChangeEvent.darttemplate b/tools/dom/templates/html/impl/impl_HashChangeEvent.darttemplate index 515dd4a8d56..dd908aaa9bc 100644 --- a/tools/dom/templates/html/impl/impl_HashChangeEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_HashChangeEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $ANNOTATIONS class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate b/tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate index 0c24dd9e25c..7599fa9ba0b 100644 --- a/tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate +++ b/tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of indexed_db; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { @DomName('IDBKeyRange.only') diff --git a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate index 8aae7172e7d..da137deb136 100644 --- a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate b/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate index bcef76753a3..0f7c31645c4 100644 --- a/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_MutationEvent.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate index cbb392482b0..abab691a679 100644 --- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate +++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate index 07ef02c1fc0..473f94a0afd 100644 --- a/tools/dom/templates/html/impl/impl_Node.darttemplate +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; /** * Lazy implementation of the child nodes of an element that does not request diff --git a/tools/dom/templates/html/impl/impl_SVGElement.darttemplate b/tools/dom/templates/html/impl/impl_SVGElement.darttemplate index 0fbdacb9d77..42ad4508420 100644 --- a/tools/dom/templates/html/impl/impl_SVGElement.darttemplate +++ b/tools/dom/templates/html/impl/impl_SVGElement.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of svg; +part of $LIBRARYNAME; class _AttributeClassSet extends CssClassSet { final Element _element; diff --git a/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate b/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate index bc77c46e804..cc21d775229 100644 --- a/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate +++ b/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of svg; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createSvgSvgElement(); diff --git a/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate index 30752ce0d40..cb2e4794d2e 100644 --- a/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate +++ b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { $!MEMBERS diff --git a/tools/dom/templates/html/impl/impl_Storage.darttemplate b/tools/dom/templates/html/impl/impl_Storage.darttemplate index 273adfd4d69..7cde516b1ae 100644 --- a/tools/dom/templates/html/impl/impl_Storage.darttemplate +++ b/tools/dom/templates/html/impl/impl_Storage.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS implements Map $NATIVESPEC { diff --git a/tools/dom/templates/html/impl/impl_StorageEvent.darttemplate b/tools/dom/templates/html/impl/impl_StorageEvent.darttemplate index 72b640d90d0..686dc1ccb91 100644 --- a/tools/dom/templates/html/impl/impl_StorageEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_StorageEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_Text.darttemplate b/tools/dom/templates/html/impl/impl_Text.darttemplate index b558e60339d..e5bbf5d4973 100644 --- a/tools/dom/templates/html/impl/impl_Text.darttemplate +++ b/tools/dom/templates/html/impl/impl_Text.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String data) => _$(CLASSNAME)FactoryProvider.create$CLASSNAME(data); diff --git a/tools/dom/templates/html/impl/impl_TextEvent.darttemplate b/tools/dom/templates/html/impl/impl_TextEvent.darttemplate index 7249ce22aa8..c877d708355 100644 --- a/tools/dom/templates/html/impl/impl_TextEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_TextEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(String type, diff --git a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate index 988b23e79f5..7223959f79e 100644 --- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { factory $CLASSNAME(TouchList touches, TouchList targetTouches, diff --git a/tools/dom/templates/html/impl/impl_UIEvent.darttemplate b/tools/dom/templates/html/impl/impl_UIEvent.darttemplate index 939ce85cf61..a4d28303543 100644 --- a/tools/dom/templates/html/impl/impl_UIEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_UIEvent.darttemplate @@ -4,7 +4,7 @@ // WARNING: Do not edit - generated code. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { // In JS, canBubble and cancelable are technically required parameters to diff --git a/tools/dom/templates/html/impl/impl_WheelEvent.darttemplate b/tools/dom/templates/html/impl/impl_WheelEvent.darttemplate index a49a9792c06..a3cf320badd 100644 --- a/tools/dom/templates/html/impl/impl_WheelEvent.darttemplate +++ b/tools/dom/templates/html/impl/impl_WheelEvent.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { diff --git a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate index 11efa7735db..ccd909b70d9 100644 --- a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate +++ b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -part of html; +part of $LIBRARYNAME; /** * A utility for retrieving data from a URL. diff --git a/utils/apidoc/html_diff.dart b/utils/apidoc/html_diff.dart index e2517455347..c9aaf84bbf5 100644 --- a/utils/apidoc/html_diff.dart +++ b/utils/apidoc/html_diff.dart @@ -26,9 +26,9 @@ const List HTML_LIBRARY_NAMES = const [ 'dart:svg', 'dart:web_audio']; const List HTML_DECLARED_NAMES = const [ - 'html', - 'svg', - 'web_audio']; + 'dart.dom.html', + 'dart.dom.svg', + 'dart.dom.web_audio']; /** * A class for computing a many-to-many mapping between the types and @@ -234,4 +234,4 @@ class HtmlDiff { } return new Set.from([name]); } -} \ No newline at end of file +}