Renaming dart:html library from 'html' to 'dart.html'

This should be invisible to end users, but basically brings dart:html in-line with the core libraries.

BUG=

Review URL: https://codereview.chromium.org//12061008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17929 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
blois@google.com
2013-01-31 17:25:55 +00:00
parent 33925422fb
commit de9fbf0e90
64 changed files with 69 additions and 68 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
library html;
library dart.dom.html;
import 'dart:async';
import 'dart:collection';
+1 -1
View File
@@ -1,4 +1,4 @@
library html;
library dart.dom.html;
import 'dart:async';
import 'dart:collection';
@@ -1,4 +1,4 @@
library indexed_db;
library dart.dom.indexed_db;
import 'dart:async';
import 'dart:html';
@@ -1,4 +1,4 @@
library indexed_db;
library dart.dom.indexed_db;
import 'dart:async';
import 'dart:html';
+1 -1
View File
@@ -1,4 +1,4 @@
library svg;
library dart.dom.svg;
import 'dart:async';
import 'dart:collection';
+1 -1
View File
@@ -1,4 +1,4 @@
library svg;
library dart.dom.svg;
import 'dart:async';
import 'dart:collection';
@@ -1,4 +1,4 @@
library web_audio;
library dart.dom.web_audio;
import 'dart:async';
import 'dart:collection';
@@ -1,4 +1,4 @@
library web_audio;
library dart.dom.web_audio;
import 'dart:async';
import 'dart:collection';
+2 -2
View File
@@ -1,5 +1,5 @@
{
"html": {
"dart.dom.html": {
"CanvasGradient": {
"comment": [
"/**",
@@ -212,4 +212,4 @@
}
}
}
}
}
+1 -1
View File
@@ -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']):
+2 -1
View File
@@ -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 '',
+1 -1
View File
@@ -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.
@@ -5,7 +5,7 @@
// DO NOT EDIT
// Auto-generated dart:html library.
library html;
library dart.dom.html;
import 'dart:async';
import 'dart:collection';
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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
@@ -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 {
@@ -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,
@@ -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 {
@@ -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" {
@@ -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
@@ -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';
@@ -1,7 +1,7 @@
// DO NOT EDIT
// Auto-generated dart:svg library.
library svg;
library dart.dom.svg;
import 'dart:async';
import 'dart:collection';
@@ -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';
@@ -5,7 +5,7 @@
// DO NOT EDIT
// Auto-generated dart:html library.
library html;
library dart.dom.html;
import 'dart:async';
import 'dart:collection';
@@ -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,
@@ -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 {
@@ -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';
@@ -1,7 +1,7 @@
// DO NOT EDIT
// Auto-generated dart:svg library.
library svg;
library dart.dom.svg;
import 'dart:async';
import 'dart:collection';
@@ -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';
@@ -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
@@ -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;
@@ -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
@@ -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,
@@ -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,
@@ -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 {
@@ -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,
@@ -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.
@@ -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();
@@ -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.
@@ -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
@@ -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.
@@ -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
@@ -4,7 +4,7 @@
// WARNING: Do not edit - generated code.
part of html;
part of $LIBRARYNAME;
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
@@ -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
@@ -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,
@@ -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')
@@ -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,
@@ -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,
@@ -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
@@ -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
@@ -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;
@@ -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();
@@ -4,7 +4,7 @@
// WARNING: Do not edit - generated code.
part of html;
part of $LIBRARYNAME;
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
@@ -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<String, String>
$NATIVESPEC {
@@ -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,
@@ -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);
@@ -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,
@@ -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,
@@ -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
@@ -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 {
@@ -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.
+4 -4
View File
@@ -26,9 +26,9 @@ const List<String> HTML_LIBRARY_NAMES = const [
'dart:svg',
'dart:web_audio'];
const List<String> 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]);
}
}
}