diff --git a/sdk/lib/html/.gitignore b/tools/dom/.gitignore
similarity index 100%
rename from sdk/lib/html/.gitignore
rename to tools/dom/.gitignore
diff --git a/sdk/lib/html/doc/html.dartdoc b/tools/dom/doc/html.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/html.dartdoc
rename to tools/dom/doc/html.dartdoc
diff --git a/sdk/lib/html/doc/interface/AbstractWorker.dartdoc b/tools/dom/doc/interface/AbstractWorker.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/AbstractWorker.dartdoc
rename to tools/dom/doc/interface/AbstractWorker.dartdoc
diff --git a/sdk/lib/html/doc/interface/Element.dartdoc b/tools/dom/doc/interface/Element.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/Element.dartdoc
rename to tools/dom/doc/interface/Element.dartdoc
diff --git a/sdk/lib/html/doc/interface/Event.dartdoc b/tools/dom/doc/interface/Event.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/Event.dartdoc
rename to tools/dom/doc/interface/Event.dartdoc
diff --git a/sdk/lib/html/doc/interface/EventTarget.dartdoc b/tools/dom/doc/interface/EventTarget.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/EventTarget.dartdoc
rename to tools/dom/doc/interface/EventTarget.dartdoc
diff --git a/sdk/lib/html/doc/interface/HttpRequest.dartdoc b/tools/dom/doc/interface/HttpRequest.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/HttpRequest.dartdoc
rename to tools/dom/doc/interface/HttpRequest.dartdoc
diff --git a/sdk/lib/html/doc/interface/MouseEvent.dartdoc b/tools/dom/doc/interface/MouseEvent.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/MouseEvent.dartdoc
rename to tools/dom/doc/interface/MouseEvent.dartdoc
diff --git a/sdk/lib/html/doc/interface/Node.dartdoc b/tools/dom/doc/interface/Node.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/Node.dartdoc
rename to tools/dom/doc/interface/Node.dartdoc
diff --git a/sdk/lib/html/doc/interface/Storage.dartdoc b/tools/dom/doc/interface/Storage.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/Storage.dartdoc
rename to tools/dom/doc/interface/Storage.dartdoc
diff --git a/sdk/lib/html/doc/interface/UIEvent.dartdoc b/tools/dom/doc/interface/UIEvent.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/UIEvent.dartdoc
rename to tools/dom/doc/interface/UIEvent.dartdoc
diff --git a/sdk/lib/html/doc/interface/WebSocket.dartdoc b/tools/dom/doc/interface/WebSocket.dartdoc
similarity index 100%
rename from sdk/lib/html/doc/interface/WebSocket.dartdoc
rename to tools/dom/doc/interface/WebSocket.dartdoc
diff --git a/sdk/lib/html/docs/html_docs.json b/tools/dom/docs/html_docs.json
similarity index 100%
rename from sdk/lib/html/docs/html_docs.json
rename to tools/dom/docs/html_docs.json
diff --git a/sdk/lib/html/docs/svg_docs.json b/tools/dom/docs/svg_docs.json
similarity index 100%
rename from sdk/lib/html/docs/svg_docs.json
rename to tools/dom/docs/svg_docs.json
diff --git a/sdk/lib/html/idl/dart/dart.idl b/tools/dom/idl/dart/dart.idl
similarity index 100%
rename from sdk/lib/html/idl/dart/dart.idl
rename to tools/dom/idl/dart/dart.idl
diff --git a/sdk/lib/html/scripts/all_tests.py b/tools/dom/scripts/all_tests.py
similarity index 100%
rename from sdk/lib/html/scripts/all_tests.py
rename to tools/dom/scripts/all_tests.py
diff --git a/sdk/lib/html/scripts/css_code_generator.py b/tools/dom/scripts/css_code_generator.py
similarity index 100%
rename from sdk/lib/html/scripts/css_code_generator.py
rename to tools/dom/scripts/css_code_generator.py
diff --git a/sdk/lib/html/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
similarity index 91%
rename from sdk/lib/html/scripts/dartdomgenerator.py
rename to tools/dom/scripts/dartdomgenerator.py
index dea8fac6154..879df285b86 100755
--- a/sdk/lib/html/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -23,6 +23,9 @@ from systemhtml import DartLibraryEmitter, Dart2JSBackend,\
from systemnative import CPPLibraryEmitter, DartiumBackend
from templateloader import TemplateLoader
+sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
+import utils
+
_logger = logging.getLogger('dartdomgenerator')
_libraries = ['html', 'indexed_db', 'svg', 'web_audio']
@@ -138,7 +141,7 @@ def GenerateFromDatabase(common_database, dart2js_output_dir,
def GenerateSingleFile(library_path, output_dir, generated_output_dir=None):
library_dir = os.path.dirname(library_path)
library_filename = os.path.basename(library_path)
- copy_dart_script = os.path.relpath('../../../../tools/copy_dart.py',
+ copy_dart_script = os.path.relpath('../../copy_dart.py',
library_dir)
output_dir = os.path.relpath(output_dir, library_dir)
command = ' '.join(['cd', library_dir, ';',
@@ -173,7 +176,9 @@ def main():
logging.config.fileConfig(os.path.join(current_dir, 'logging.conf'))
systems = options.systems.split(',')
- output_dir = options.output_dir or os.path.join(current_dir, '../generated')
+ output_dir = options.output_dir or os.path.join(
+ current_dir, '..', '..', utils.GetBuildDir(utils.GuessOS(), None),
+ 'generated')
dart2js_output_dir = None
if 'htmldart2js' in systems:
@@ -192,16 +197,19 @@ def main():
_logger.info('Add documentation to generated classes.')
html_to_json_script = os.path.relpath(
- '../../../../tools/html_json_doc/bin/html_json_doc.dart',
+ '../../html_json_doc/bin/html_json_doc.dart',
current_dir)
html_output_dir = os.path.join(output_dir, 'dart2js/dart/html/')
svg_output_dir = os.path.join(output_dir, 'dart2js/dart/svg/')
html_json_path = os.path.relpath('../docs/html_docs.json')
svg_json_path = os.path.relpath('../docs/svg_docs.json')
- html_command = ' '.join(['dart', html_to_json_script, '--mode=json-to-html',
- html_output_dir, html_json_path])
- svg_command = ' '.join(['dart', html_to_json_script, '--mode=json-to-html',
- svg_output_dir, svg_json_path])
+
+ path_to_dart = utils.DartBinary()
+ html_command = ' '.join([path_to_dart, html_to_json_script,
+ '--mode=json-to-html', html_output_dir,
+ html_json_path])
+ svg_command = ' '.join([path_to_dart, html_to_json_script,
+ '--mode=json-to-html', svg_output_dir, svg_json_path])
subprocess.call([html_command], shell=True)
subprocess.call([svg_command], shell=True)
@@ -210,13 +218,13 @@ def main():
for library_name in _libraries:
GenerateSingleFile(
os.path.join(dart2js_output_dir, '%s_dart2js.dart' % library_name),
- '../../%s/dart2js' % library_name)
+ os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dart2js'))
if 'htmldartium' in systems:
_logger.info('Generating dartium single files.')
for library_name in _libraries:
GenerateSingleFile(
os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name),
- '../../%s/dartium' % library_name)
+ os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium'))
if __name__ == '__main__':
sys.exit(main())
diff --git a/sdk/lib/html/scripts/dartgenerator.py b/tools/dom/scripts/dartgenerator.py
similarity index 100%
rename from sdk/lib/html/scripts/dartgenerator.py
rename to tools/dom/scripts/dartgenerator.py
diff --git a/sdk/lib/html/scripts/dartgenerator_test.py b/tools/dom/scripts/dartgenerator_test.py
similarity index 100%
rename from sdk/lib/html/scripts/dartgenerator_test.py
rename to tools/dom/scripts/dartgenerator_test.py
diff --git a/sdk/lib/html/scripts/database.py b/tools/dom/scripts/database.py
similarity index 100%
rename from sdk/lib/html/scripts/database.py
rename to tools/dom/scripts/database.py
diff --git a/sdk/lib/html/scripts/database_test.py b/tools/dom/scripts/database_test.py
similarity index 100%
rename from sdk/lib/html/scripts/database_test.py
rename to tools/dom/scripts/database_test.py
diff --git a/sdk/lib/html/scripts/databasebuilder.py b/tools/dom/scripts/databasebuilder.py
similarity index 100%
rename from sdk/lib/html/scripts/databasebuilder.py
rename to tools/dom/scripts/databasebuilder.py
diff --git a/sdk/lib/html/scripts/databasebuilder_test.py b/tools/dom/scripts/databasebuilder_test.py
similarity index 100%
rename from sdk/lib/html/scripts/databasebuilder_test.py
rename to tools/dom/scripts/databasebuilder_test.py
diff --git a/sdk/lib/html/scripts/emitter.py b/tools/dom/scripts/emitter.py
similarity index 100%
rename from sdk/lib/html/scripts/emitter.py
rename to tools/dom/scripts/emitter.py
diff --git a/sdk/lib/html/scripts/emitter_test.py b/tools/dom/scripts/emitter_test.py
similarity index 100%
rename from sdk/lib/html/scripts/emitter_test.py
rename to tools/dom/scripts/emitter_test.py
diff --git a/sdk/lib/html/scripts/fremontcutbuilder.py b/tools/dom/scripts/fremontcutbuilder.py
similarity index 97%
rename from sdk/lib/html/scripts/fremontcutbuilder.py
rename to tools/dom/scripts/fremontcutbuilder.py
index 19181a07683..220f5655d53 100755
--- a/sdk/lib/html/scripts/fremontcutbuilder.py
+++ b/tools/dom/scripts/fremontcutbuilder.py
@@ -185,8 +185,8 @@ def main(parallel=False):
idl_files = []
- webcore_dir = os.path.join(current_dir, '..', '..', '..', '..',
- 'third_party', 'WebCore')
+ webcore_dir = os.path.join(current_dir, '..', '..', '..', 'third_party',
+ 'WebCore')
if not os.path.exists(webcore_dir):
raise RuntimeError('directory not found: %s' % webcore_dir)
diff --git a/sdk/lib/html/scripts/generator.py b/tools/dom/scripts/generator.py
similarity index 100%
rename from sdk/lib/html/scripts/generator.py
rename to tools/dom/scripts/generator.py
diff --git a/sdk/lib/html/scripts/go.sh b/tools/dom/scripts/go.sh
similarity index 100%
rename from sdk/lib/html/scripts/go.sh
rename to tools/dom/scripts/go.sh
diff --git a/sdk/lib/html/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py
similarity index 100%
rename from sdk/lib/html/scripts/htmldartgenerator.py
rename to tools/dom/scripts/htmldartgenerator.py
diff --git a/sdk/lib/html/scripts/htmleventgenerator.py b/tools/dom/scripts/htmleventgenerator.py
similarity index 100%
rename from sdk/lib/html/scripts/htmleventgenerator.py
rename to tools/dom/scripts/htmleventgenerator.py
diff --git a/sdk/lib/html/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
similarity index 100%
rename from sdk/lib/html/scripts/htmlrenamer.py
rename to tools/dom/scripts/htmlrenamer.py
diff --git a/sdk/lib/html/scripts/idlnode.py b/tools/dom/scripts/idlnode.py
similarity index 100%
rename from sdk/lib/html/scripts/idlnode.py
rename to tools/dom/scripts/idlnode.py
diff --git a/sdk/lib/html/scripts/idlnode_test.py b/tools/dom/scripts/idlnode_test.py
similarity index 100%
rename from sdk/lib/html/scripts/idlnode_test.py
rename to tools/dom/scripts/idlnode_test.py
diff --git a/sdk/lib/html/scripts/idlparser.dart b/tools/dom/scripts/idlparser.dart
similarity index 100%
rename from sdk/lib/html/scripts/idlparser.dart
rename to tools/dom/scripts/idlparser.dart
diff --git a/sdk/lib/html/scripts/idlparser.py b/tools/dom/scripts/idlparser.py
similarity index 100%
rename from sdk/lib/html/scripts/idlparser.py
rename to tools/dom/scripts/idlparser.py
diff --git a/sdk/lib/html/scripts/idlparser_test.dart b/tools/dom/scripts/idlparser_test.dart
similarity index 100%
rename from sdk/lib/html/scripts/idlparser_test.dart
rename to tools/dom/scripts/idlparser_test.dart
diff --git a/sdk/lib/html/scripts/idlparser_test.py b/tools/dom/scripts/idlparser_test.py
similarity index 100%
rename from sdk/lib/html/scripts/idlparser_test.py
rename to tools/dom/scripts/idlparser_test.py
diff --git a/sdk/lib/html/scripts/idlrenderer.dart b/tools/dom/scripts/idlrenderer.dart
similarity index 100%
rename from sdk/lib/html/scripts/idlrenderer.dart
rename to tools/dom/scripts/idlrenderer.dart
diff --git a/sdk/lib/html/scripts/idlrenderer.py b/tools/dom/scripts/idlrenderer.py
similarity index 100%
rename from sdk/lib/html/scripts/idlrenderer.py
rename to tools/dom/scripts/idlrenderer.py
diff --git a/sdk/lib/html/scripts/idlrenderer_test.py b/tools/dom/scripts/idlrenderer_test.py
similarity index 100%
rename from sdk/lib/html/scripts/idlrenderer_test.py
rename to tools/dom/scripts/idlrenderer_test.py
diff --git a/sdk/lib/html/scripts/idlsync.py b/tools/dom/scripts/idlsync.py
similarity index 100%
rename from sdk/lib/html/scripts/idlsync.py
rename to tools/dom/scripts/idlsync.py
diff --git a/sdk/lib/html/scripts/logging.conf b/tools/dom/scripts/logging.conf
similarity index 100%
rename from sdk/lib/html/scripts/logging.conf
rename to tools/dom/scripts/logging.conf
diff --git a/sdk/lib/html/scripts/multiemitter.py b/tools/dom/scripts/multiemitter.py
similarity index 100%
rename from sdk/lib/html/scripts/multiemitter.py
rename to tools/dom/scripts/multiemitter.py
diff --git a/sdk/lib/html/scripts/multiemitter_test.py b/tools/dom/scripts/multiemitter_test.py
similarity index 100%
rename from sdk/lib/html/scripts/multiemitter_test.py
rename to tools/dom/scripts/multiemitter_test.py
diff --git a/sdk/lib/html/scripts/pegparser.py b/tools/dom/scripts/pegparser.py
similarity index 100%
rename from sdk/lib/html/scripts/pegparser.py
rename to tools/dom/scripts/pegparser.py
diff --git a/sdk/lib/html/scripts/pegparser_test.py b/tools/dom/scripts/pegparser_test.py
similarity index 100%
rename from sdk/lib/html/scripts/pegparser_test.py
rename to tools/dom/scripts/pegparser_test.py
diff --git a/sdk/lib/html/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
similarity index 100%
rename from sdk/lib/html/scripts/systemhtml.py
rename to tools/dom/scripts/systemhtml.py
diff --git a/sdk/lib/html/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
similarity index 100%
rename from sdk/lib/html/scripts/systemnative.py
rename to tools/dom/scripts/systemnative.py
diff --git a/sdk/lib/html/scripts/templateloader.py b/tools/dom/scripts/templateloader.py
similarity index 100%
rename from sdk/lib/html/scripts/templateloader.py
rename to tools/dom/scripts/templateloader.py
diff --git a/sdk/lib/html/scripts/templateloader_test.py b/tools/dom/scripts/templateloader_test.py
similarity index 100%
rename from sdk/lib/html/scripts/templateloader_test.py
rename to tools/dom/scripts/templateloader_test.py
diff --git a/sdk/lib/html/src/AttributeMap.dart b/tools/dom/src/AttributeMap.dart
similarity index 100%
rename from sdk/lib/html/src/AttributeMap.dart
rename to tools/dom/src/AttributeMap.dart
diff --git a/sdk/lib/html/src/CrossFrameTypes.dart b/tools/dom/src/CrossFrameTypes.dart
similarity index 100%
rename from sdk/lib/html/src/CrossFrameTypes.dart
rename to tools/dom/src/CrossFrameTypes.dart
diff --git a/sdk/lib/html/src/CssClassSet.dart b/tools/dom/src/CssClassSet.dart
similarity index 100%
rename from sdk/lib/html/src/CssClassSet.dart
rename to tools/dom/src/CssClassSet.dart
diff --git a/sdk/lib/html/src/Device.dart b/tools/dom/src/Device.dart
similarity index 100%
rename from sdk/lib/html/src/Device.dart
rename to tools/dom/src/Device.dart
diff --git a/sdk/lib/html/src/EventListener.dart b/tools/dom/src/EventListener.dart
similarity index 100%
rename from sdk/lib/html/src/EventListener.dart
rename to tools/dom/src/EventListener.dart
diff --git a/sdk/lib/html/src/Isolates.dart b/tools/dom/src/Isolates.dart
similarity index 100%
rename from sdk/lib/html/src/Isolates.dart
rename to tools/dom/src/Isolates.dart
diff --git a/sdk/lib/html/src/KeyCode.dart b/tools/dom/src/KeyCode.dart
similarity index 100%
rename from sdk/lib/html/src/KeyCode.dart
rename to tools/dom/src/KeyCode.dart
diff --git a/sdk/lib/html/src/KeyLocation.dart b/tools/dom/src/KeyLocation.dart
similarity index 100%
rename from sdk/lib/html/src/KeyLocation.dart
rename to tools/dom/src/KeyLocation.dart
diff --git a/sdk/lib/html/src/KeyName.dart b/tools/dom/src/KeyName.dart
similarity index 100%
rename from sdk/lib/html/src/KeyName.dart
rename to tools/dom/src/KeyName.dart
diff --git a/sdk/lib/html/src/KeyboardEventController.dart b/tools/dom/src/KeyboardEventController.dart
similarity index 100%
rename from sdk/lib/html/src/KeyboardEventController.dart
rename to tools/dom/src/KeyboardEventController.dart
diff --git a/sdk/lib/html/src/Measurement.dart b/tools/dom/src/Measurement.dart
similarity index 100%
rename from sdk/lib/html/src/Measurement.dart
rename to tools/dom/src/Measurement.dart
diff --git a/sdk/lib/html/src/ReadyState.dart b/tools/dom/src/ReadyState.dart
similarity index 100%
rename from sdk/lib/html/src/ReadyState.dart
rename to tools/dom/src/ReadyState.dart
diff --git a/sdk/lib/html/src/Serialization.dart b/tools/dom/src/Serialization.dart
similarity index 100%
rename from sdk/lib/html/src/Serialization.dart
rename to tools/dom/src/Serialization.dart
diff --git a/sdk/lib/html/src/Timer.dart b/tools/dom/src/Timer.dart
similarity index 100%
rename from sdk/lib/html/src/Timer.dart
rename to tools/dom/src/Timer.dart
diff --git a/sdk/lib/html/src/_HttpRequestUtils.dart b/tools/dom/src/_HttpRequestUtils.dart
similarity index 100%
rename from sdk/lib/html/src/_HttpRequestUtils.dart
rename to tools/dom/src/_HttpRequestUtils.dart
diff --git a/sdk/lib/html/src/_ListIterators.dart b/tools/dom/src/_ListIterators.dart
similarity index 100%
rename from sdk/lib/html/src/_ListIterators.dart
rename to tools/dom/src/_ListIterators.dart
diff --git a/sdk/lib/html/src/_Testing.dart b/tools/dom/src/_Testing.dart
similarity index 100%
rename from sdk/lib/html/src/_Testing.dart
rename to tools/dom/src/_Testing.dart
diff --git a/sdk/lib/html/src/dart2js_Conversions.dart b/tools/dom/src/dart2js_Conversions.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_Conversions.dart
rename to tools/dom/src/dart2js_Conversions.dart
diff --git a/sdk/lib/html/src/dart2js_DOMImplementation.dart b/tools/dom/src/dart2js_DOMImplementation.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_DOMImplementation.dart
rename to tools/dom/src/dart2js_DOMImplementation.dart
diff --git a/sdk/lib/html/src/dart2js_FactoryProviders.dart b/tools/dom/src/dart2js_FactoryProviders.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_FactoryProviders.dart
rename to tools/dom/src/dart2js_FactoryProviders.dart
diff --git a/sdk/lib/html/src/dart2js_KeyEvent.dart b/tools/dom/src/dart2js_KeyEvent.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_KeyEvent.dart
rename to tools/dom/src/dart2js_KeyEvent.dart
diff --git a/sdk/lib/html/src/dart2js_LocationWrapper.dart b/tools/dom/src/dart2js_LocationWrapper.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_LocationWrapper.dart
rename to tools/dom/src/dart2js_LocationWrapper.dart
diff --git a/sdk/lib/html/src/dart2js_TypedArrayFactoryProvider.dart b/tools/dom/src/dart2js_TypedArrayFactoryProvider.dart
similarity index 100%
rename from sdk/lib/html/src/dart2js_TypedArrayFactoryProvider.dart
rename to tools/dom/src/dart2js_TypedArrayFactoryProvider.dart
diff --git a/sdk/lib/html/src/dartium_FactoryProviders.dart b/tools/dom/src/dartium_FactoryProviders.dart
similarity index 100%
rename from sdk/lib/html/src/dartium_FactoryProviders.dart
rename to tools/dom/src/dartium_FactoryProviders.dart
diff --git a/sdk/lib/html/src/dartium_KeyEvent.dart b/tools/dom/src/dartium_KeyEvent.dart
similarity index 100%
rename from sdk/lib/html/src/dartium_KeyEvent.dart
rename to tools/dom/src/dartium_KeyEvent.dart
diff --git a/sdk/lib/html/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
similarity index 100%
rename from sdk/lib/html/src/native_DOMImplementation.dart
rename to tools/dom/src/native_DOMImplementation.dart
diff --git a/sdk/lib/html/src/native_DOMPublic.dart b/tools/dom/src/native_DOMPublic.dart
similarity index 100%
rename from sdk/lib/html/src/native_DOMPublic.dart
rename to tools/dom/src/native_DOMPublic.dart
diff --git a/sdk/lib/html/src/shared_FactoryProviders.dart b/tools/dom/src/shared_FactoryProviders.dart
similarity index 100%
rename from sdk/lib/html/src/shared_FactoryProviders.dart
rename to tools/dom/src/shared_FactoryProviders.dart
diff --git a/sdk/lib/html/src/shared_SVGFactoryProviders.dart b/tools/dom/src/shared_SVGFactoryProviders.dart
similarity index 100%
rename from sdk/lib/html/src/shared_SVGFactoryProviders.dart
rename to tools/dom/src/shared_SVGFactoryProviders.dart
diff --git a/sdk/lib/html/templates/callback.darttemplate b/tools/dom/templates/callback.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/callback.darttemplate
rename to tools/dom/templates/callback.darttemplate
diff --git a/sdk/lib/html/templates/dart2js_impl.darttemplate b/tools/dom/templates/dart2js_impl.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/dart2js_impl.darttemplate
rename to tools/dom/templates/dart2js_impl.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_AudioContext.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_AudioContext.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_AudioContext.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_AudioContext.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_Blob.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_Blob.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_DataView.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_DataView.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_DataView.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_DataView.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_FormData.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_FormData.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_HTMLAudioElement.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_HTMLAudioElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_HTMLAudioElement.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_HTMLAudioElement.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_HTMLOptionElement.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_HTMLOptionElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_HTMLOptionElement.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_HTMLOptionElement.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_MutationObserver.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_MutationObserver.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_MutationObserver.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_MutationObserver.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_SharedWorker.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_SharedWorker.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_SharedWorker.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_SharedWorker.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_WebKitCSSMatrix.darttemplate b/tools/dom/templates/html/dart2js/factoryprovider_WebKitCSSMatrix.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/factoryprovider_WebKitCSSMatrix.darttemplate
rename to tools/dom/templates/html/dart2js/factoryprovider_WebKitCSSMatrix.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/html_dart2js.darttemplate b/tools/dom/templates/html/dart2js/html_dart2js.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/html_dart2js.darttemplate
rename to tools/dom/templates/html/dart2js/html_dart2js.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate b/tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate
rename to tools/dom/templates/html/dart2js/impl_AudioBufferSourceNode.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_Console.darttemplate b/tools/dom/templates/html/dart2js/impl_Console.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_Console.darttemplate
rename to tools/dom/templates/html/dart2js/impl_Console.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate b/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate
rename to tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_HTMLTableElement.darttemplate b/tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_HTMLTableElement.darttemplate
rename to tools/dom/templates/html/dart2js/impl_HTMLTableElement.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
rename to tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate
rename to tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
rename to tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate b/tools/dom/templates/html/dart2js/impl_Navigator.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
rename to tools/dom/templates/html/dart2js/impl_Navigator.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_URL.darttemplate b/tools/dom/templates/html/dart2js/impl_URL.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_URL.darttemplate
rename to tools/dom/templates/html/dart2js/impl_URL.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_Window.darttemplate b/tools/dom/templates/html/dart2js/impl_Window.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_Window.darttemplate
rename to tools/dom/templates/html/dart2js/impl_Window.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_WorkerContext.darttemplate b/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/impl_WorkerContext.darttemplate
rename to tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/indexed_db_dart2js.darttemplate b/tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/indexed_db_dart2js.darttemplate
rename to tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/svg_dart2js.darttemplate b/tools/dom/templates/html/dart2js/svg_dart2js.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/svg_dart2js.darttemplate
rename to tools/dom/templates/html/dart2js/svg_dart2js.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/web_audio_dart2js.darttemplate b/tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dart2js/web_audio_dart2js.darttemplate
rename to tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/cpp_callback_header.template b/tools/dom/templates/html/dartium/cpp_callback_header.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_callback_header.template
rename to tools/dom/templates/html/dartium/cpp_callback_header.template
diff --git a/sdk/lib/html/templates/html/dartium/cpp_callback_implementation.template b/tools/dom/templates/html/dartium/cpp_callback_implementation.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_callback_implementation.template
rename to tools/dom/templates/html/dartium/cpp_callback_implementation.template
diff --git a/sdk/lib/html/templates/html/dartium/cpp_derived_sources.template b/tools/dom/templates/html/dartium/cpp_derived_sources.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_derived_sources.template
rename to tools/dom/templates/html/dartium/cpp_derived_sources.template
diff --git a/sdk/lib/html/templates/html/dartium/cpp_header.template b/tools/dom/templates/html/dartium/cpp_header.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_header.template
rename to tools/dom/templates/html/dartium/cpp_header.template
diff --git a/sdk/lib/html/templates/html/dartium/cpp_implementation.template b/tools/dom/templates/html/dartium/cpp_implementation.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_implementation.template
rename to tools/dom/templates/html/dartium/cpp_implementation.template
diff --git a/sdk/lib/html/templates/html/dartium/cpp_resolver.template b/tools/dom/templates/html/dartium/cpp_resolver.template
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/cpp_resolver.template
rename to tools/dom/templates/html/dartium/cpp_resolver.template
diff --git a/sdk/lib/html/templates/html/dartium/dart_implementation.darttemplate b/tools/dom/templates/html/dartium/dart_implementation.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/dart_implementation.darttemplate
rename to tools/dom/templates/html/dartium/dart_implementation.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/html_dartium.darttemplate
rename to tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/impl_KeyboardEvent.darttemplate b/tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/impl_KeyboardEvent.darttemplate
rename to tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/impl_MouseEvent.darttemplate
rename to tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/impl_Window.darttemplate b/tools/dom/templates/html/dartium/impl_Window.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/impl_Window.darttemplate
rename to tools/dom/templates/html/dartium/impl_Window.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/indexed_db_dartium.darttemplate b/tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/indexed_db_dartium.darttemplate
rename to tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/svg_dartium.darttemplate b/tools/dom/templates/html/dartium/svg_dartium.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/svg_dartium.darttemplate
rename to tools/dom/templates/html/dartium/svg_dartium.darttemplate
diff --git a/sdk/lib/html/templates/html/dartium/web_audio_dartium.darttemplate b/tools/dom/templates/html/dartium/web_audio_dartium.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/dartium/web_audio_dartium.darttemplate
rename to tools/dom/templates/html/dartium/web_audio_dartium.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/factoryprovider_Elements.darttemplate b/tools/dom/templates/html/impl/factoryprovider_Elements.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/factoryprovider_Elements.darttemplate
rename to tools/dom/templates/html/impl/factoryprovider_Elements.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate
rename to tools/dom/templates/html/impl/impl_AudioContext.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
rename to tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
rename to tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate b/tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_CustomEvent.darttemplate
rename to tools/dom/templates/html/impl/impl_CustomEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Document.darttemplate
rename to tools/dom/templates/html/impl/impl_Document.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
rename to tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Element.darttemplate
rename to tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Event.darttemplate b/tools/dom/templates/html/impl/impl_Event.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Event.darttemplate
rename to tools/dom/templates/html/impl/impl_Event.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_EventTarget.darttemplate b/tools/dom/templates/html/impl/impl_EventTarget.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_EventTarget.darttemplate
rename to tools/dom/templates/html/impl/impl_EventTarget.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_HTMLCanvasElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_HTMLCanvasElement.darttemplate
rename to tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_HTMLDocument.darttemplate
rename to tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_HTMLInputElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_HTMLInputElement.darttemplate
rename to tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_HTMLSelectElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_HTMLSelectElement.darttemplate
rename to tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_IDBFactory.darttemplate
rename to tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_IDBKeyRange.darttemplate b/tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_IDBKeyRange.darttemplate
rename to tools/dom/templates/html/impl/impl_IDBKeyRange.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_MutationObserver.darttemplate b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_MutationObserver.darttemplate
rename to tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Node.darttemplate
rename to tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Range.darttemplate b/tools/dom/templates/html/impl/impl_Range.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Range.darttemplate
rename to tools/dom/templates/html/impl/impl_Range.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_SVGElement.darttemplate b/tools/dom/templates/html/impl/impl_SVGElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_SVGElement.darttemplate
rename to tools/dom/templates/html/impl/impl_SVGElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_SVGSVGElement.darttemplate b/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_SVGSVGElement.darttemplate
rename to tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_ShadowRoot.darttemplate b/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_ShadowRoot.darttemplate
rename to tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Storage.darttemplate b/tools/dom/templates/html/impl/impl_Storage.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Storage.darttemplate
rename to tools/dom/templates/html/impl/impl_Storage.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Text.darttemplate b/tools/dom/templates/html/impl/impl_Text.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_Text.darttemplate
rename to tools/dom/templates/html/impl/impl_Text.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_UIEvent.darttemplate b/tools/dom/templates/html/impl/impl_UIEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_UIEvent.darttemplate
rename to tools/dom/templates/html/impl/impl_UIEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_WheelEvent.darttemplate b/tools/dom/templates/html/impl/impl_WheelEvent.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_WheelEvent.darttemplate
rename to tools/dom/templates/html/impl/impl_WheelEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/impl_XMLHttpRequest.darttemplate
rename to tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/pure_interface.darttemplate b/tools/dom/templates/html/impl/pure_interface.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/html/impl/pure_interface.darttemplate
rename to tools/dom/templates/html/impl/pure_interface.darttemplate
diff --git a/sdk/lib/html/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
similarity index 100%
rename from sdk/lib/html/templates/immutable_list_mixin.darttemplate
rename to tools/dom/templates/immutable_list_mixin.darttemplate