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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 12024002: Fixing cleanup of dart:html annotation generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 82f49688e7e6e2bce22d3decbd6a00a16aa3a9ca..8e3639e4437c3ce3989a529d5e98108689ca30ec 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -6781,8 +6781,6 @@ class DivElement extends _Element_Merged {
// BSD-style license that can be found in the LICENSE file.
-@DocsEditable
-@DomName('Document')
/**
* The base class for all documents.
*
@@ -6792,6 +6790,8 @@ class DivElement extends _Element_Merged {
* If you aren't comfortable with DOM concepts, see the Dart tutorial
* [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connect-dart-html/).
*/
+@DocsEditable
+@DomName('Document')
class Document extends Node
{
@@ -8951,6 +8951,8 @@ class _ElementCssClassSet extends CssClassSet {
/**
* An abstract class, which all HTML elements extend.
*/
+@DocsEditable
+@DomName('Element')
abstract class Element extends Node implements ElementTraversal {
/**
@@ -10537,7 +10539,7 @@ class EventSourceEvents extends Events {
* Events can either be accessed by string name (using the indexed getter) or by
* getters exposed by subclasses. Use the getters exposed by subclasses when
* possible for better compile-time type checks.
- *
+ *
* Using an indexed getter:
* events['mouseover'].add((e) => print("Mouse over!"));
*
@@ -10592,8 +10594,6 @@ class EventListenerList {
}
}
-@DocsEditable
-@DomName('EventTarget')
/**
* Base class for all browser objects that support events.
*
@@ -10601,7 +10601,9 @@ class EventListenerList {
* [$dom_addEventListener], [$dom_dispatchEvent], and
* [$dom_removeEventListener]) for compile-time type checks and a more concise
* API.
- */
+ */
+@DocsEditable
+@DomName('EventTarget')
class EventTarget extends NativeFieldWrapperClass1 {
@DomName('EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent')
@@ -12182,7 +12184,6 @@ class HeadingElement extends _Element_Merged {
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable
@DomName('History')
class History extends NativeFieldWrapperClass1 implements HistoryBase {
@@ -12818,34 +12819,35 @@ class HtmlOptionsCollection extends HtmlCollection {
/**
* A utility for retrieving data from a URL.
- *
+ *
* HttpRequest can be used to obtain data from http, ftp, and file
- * protocols.
- *
+ * protocols.
+ *
* For example, suppose we're developing these API docs, and we
* wish to retrieve the HTML of the top-level page and print it out.
* The easiest way to do that would be:
- *
+ *
* var httpRequest = HttpRequest.get('http://api.dartlang.org',
* (request) => print(request.responseText));
- *
+ *
* **Important**: With the default behavior of this class, your
* code making the request should be served from the same origin (domain name,
* port, and application layer protocol) as the URL you are trying to access
- * with HttpRequest. However, there are ways to
+ * with HttpRequest. However, there are ways to
* [get around this restriction](http://www.dartlang.org/articles/json-web-service/#note-on-jsonp).
- *
+ *
* See also:
*
* * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json-web-service/#getting-data)
* * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest)
* * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
*/
+@DocsEditable
@DomName('XMLHttpRequest')
class HttpRequest extends EventTarget {
/**
* Creates a URL get request for the specified `url`.
- *
+ *
* After completing the request, the object will call the user-provided
* [onComplete] callback.
*/
@@ -12857,8 +12859,8 @@ class HttpRequest extends EventTarget {
* Creates a URL GET request for the specified `url` with
* credentials such a cookie (already) set in the header or
* [authorization headers](http://tools.ietf.org/html/rfc1945#section-10.2).
- *
- * After completing the request, the object will call the user-provided
+ *
+ * After completing the request, the object will call the user-provided
* [onComplete] callback.
*
* A few other details to keep in mind when using credentials:
@@ -12867,7 +12869,7 @@ class HttpRequest extends EventTarget {
* * The `Access-Control-Allow-Origin` header of `url` cannot contain a wildcard (*).
* * The `Access-Control-Allow-Credentials` header of `url` must be set to true.
* * If `Access-Control-Expose-Headers` has not been set to true, only a subset of all the response headers will be returned when calling [getAllRequestHeaders].
- *
+ *
* See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access_authentication).
*/
factory HttpRequest.getWithCredentials(String url,
@@ -15174,11 +15176,12 @@ class JavaScriptCallFrame extends NativeFieldWrapperClass1 {
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('KeyboardEvent')
class KeyboardEvent extends UIEvent {
factory KeyboardEvent(String type, Window view,
- [bool canBubble = true, bool cancelable = true,
+ [bool canBubble = true, bool cancelable = true,
String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false,
bool altKey = false, bool shiftKey = false, bool metaKey = false,
bool altGraphKey = false]) {
@@ -15190,7 +15193,7 @@ class KeyboardEvent extends UIEvent {
@DomName('KeyboardEvent.keyCode')
int get keyCode => $dom_keyCode;
-
+
@DomName('KeyboardEvent.charCode')
int get charCode => $dom_charCode;
KeyboardEvent.internal() : super.internal();
@@ -16458,9 +16461,9 @@ class MediaSource extends EventTarget {
// BSD-style license that can be found in the LICENSE file.
-/// @domName MediaStream; @docsEditable true
-@DocsEditable
+/// @domName MediaStream; @docsEditable true@DocsEditable
@DomName('MediaStream')
+
class MediaStream extends EventTarget {
MediaStream.internal() : super.internal();
@@ -21929,7 +21932,8 @@ class SqlTransactionSync extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('Storage')
-class Storage extends NativeFieldWrapperClass1 implements Map<String, String> {
+class Storage extends NativeFieldWrapperClass1 implements Map<String, String>
+ {
// TODO(nweiz): update this when maps support lazy iteration
bool containsValue(String value) => values.any((e) => e == value);
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698