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

Unified Diff: tool/input_sdk/lib/html/html_common/metadata.dart

Issue 1528613004: First cut of mini dart:html. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix build_sdk Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tool/input_sdk/lib/html/html_common/lists.dart ('k') | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/html/html_common/metadata.dart
diff --git a/tool/input_sdk/lib/html/html_common/metadata.dart b/tool/input_sdk/lib/html/html_common/metadata.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9b0e56da5e68d3c721ee1619ae3bf4890db70bfc
--- /dev/null
+++ b/tool/input_sdk/lib/html/html_common/metadata.dart
@@ -0,0 +1,74 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+library metadata;
+
+/**
+ * An annotation used to mark a feature as only being supported by a subset
+ * of the browsers that Dart supports by default.
+ *
+ * If an API is not annotated with [SupportedBrowser] then it is assumed to
+ * work on all browsers Dart supports.
+ */
+class SupportedBrowser {
+ static const String CHROME = "Chrome";
+ static const String FIREFOX = "Firefox";
+ static const String IE = "Internet Explorer";
+ static const String OPERA = "Opera";
+ static const String SAFARI = "Safari";
+
+ /// The name of the browser.
+ final String browserName;
+ /// The minimum version of the browser that supports the feature, or null
+ /// if supported on all versions.
+ final String minimumVersion;
+
+ const SupportedBrowser(this.browserName, [this.minimumVersion]);
+}
+
+
+/**
+ * An annotation used to mark an API as being experimental.
+ *
+ * An API is considered to be experimental if it is still going through the
+ * process of stabilizing and is subject to change or removal.
+ *
+ * See also:
+ *
+ * * [W3C recommendation](http://en.wikipedia.org/wiki/W3C_recommendation)
+ */
+class Experimental {
+ const Experimental();
+}
+
+
+/**
+ * Annotation that specifies that a member is editable through generate files.
+ *
+ * This is used for API generation.
+ *
+ * [name] should be formatted as `interface.member`.
+ */
+class DomName {
+ final String name;
+ const DomName(this.name);
+}
+
+
+/**
+ * Metadata that specifies that that member is editable through generated
+ * files.
+ */
+class DocsEditable {
+ const DocsEditable();
+}
+
+
+/**
+ * Annotation that indicates that an API is not expected to change but has
+ * not undergone enough testing to be considered stable.
+ */
+class Unstable {
+ const Unstable();
+}
« no previous file with comments | « tool/input_sdk/lib/html/html_common/lists.dart ('k') | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698