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

Side by Side Diff: sdk/lib/html/html_common/metadata.dart

Issue 11647044: Adding annotation for partial browser support and example implementation for MutationObservers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added experimental annotation to MutationObserver. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/html_common/html_common_dart2js.dart ('k') | sdk/lib/html/src/Measurement.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of html_common;
6
7 /**
8 * An annotation used to mark a feature as only being supported by a subset
9 * of the browsers that Dart supports by default.
10 *
11 * If an API is not annotated with [SupportedBrowser] then it is assumed to
12 * work on all browsers Dart supports.
13 */
14 class SupportedBrowser {
15 static const String CHROME = "Chrome";
16 static const String FIREFOX = "Firefox";
17 static const String IE = "Internet Explorer";
18 static const String SAFARI = "Safari";
19
20 /// The name of the browser.
21 final String browserName;
22 /// The minimum version of the browser that supports the feature, or null
23 /// if supported on all versions.
24 final String minimumVersion;
25
26 const SupportedBrowser(this.browserName, [this.minimumVersion]);
27 }
28
29
30 /**
31 * An annotation used to mark an API as being experimental.
32 *
33 * An API is considered to be experimental if it is still going through the
34 * process of stabilizing and is subject to change or removal.
35 *
36 * See also:
37 *
38 * * [W3C recommendation](http://en.wikipedia.org/wiki/W3C_recommendation)
39 */
40 class Experimental {
41 const Experimental();
42 }
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/html_common_dart2js.dart ('k') | sdk/lib/html/src/Measurement.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698