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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 11883025: Detect if webkitNotifications is available and remove webkit prefix (replaced (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') | tests/html/audiocontext_test.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 20abb4690e70996514617360a4d7997516e414d4..59edcfe0da3be67463cd0148be8a9eb6d4f916a7 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -7669,60 +7669,6 @@ class DomError extends NativeFieldWrapperClass1 {
class DomException extends NativeFieldWrapperClass1 {
DomException.internal();
- static const int ABORT_ERR = 20;
-
- static const int DATA_CLONE_ERR = 25;
-
- static const int DOMSTRING_SIZE_ERR = 2;
-
- static const int HIERARCHY_REQUEST_ERR = 3;
-
- static const int INDEX_SIZE_ERR = 1;
-
- static const int INUSE_ATTRIBUTE_ERR = 10;
-
- static const int INVALID_ACCESS_ERR = 15;
-
- static const int INVALID_CHARACTER_ERR = 5;
-
- static const int INVALID_MODIFICATION_ERR = 13;
-
- static const int INVALID_NODE_TYPE_ERR = 24;
-
- static const int INVALID_STATE_ERR = 11;
-
- static const int NAMESPACE_ERR = 14;
-
- static const int NETWORK_ERR = 19;
-
- static const int NOT_FOUND_ERR = 8;
-
- static const int NOT_SUPPORTED_ERR = 9;
-
- static const int NO_DATA_ALLOWED_ERR = 6;
-
- static const int NO_MODIFICATION_ALLOWED_ERR = 7;
-
- static const int QUOTA_EXCEEDED_ERR = 22;
-
- static const int SECURITY_ERR = 18;
-
- static const int SYNTAX_ERR = 12;
-
- static const int TIMEOUT_ERR = 23;
-
- static const int TYPE_MISMATCH_ERR = 17;
-
- static const int URL_MISMATCH_ERR = 21;
-
- static const int VALIDATION_ERR = 16;
-
- static const int WRONG_DOCUMENT_ERR = 4;
-
-
- /** @domName DOMCoreException.code */
- int get code native "DOMCoreException_code_Getter";
-
/** @domName DOMCoreException.message */
String get message native "DOMCoreException_message_Getter";
@@ -18412,9 +18358,15 @@ class NotificationEvents extends Events {
/// @domName NotificationCenter
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental()
class NotificationCenter extends NativeFieldWrapperClass1 {
NotificationCenter.internal();
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => true;
+
/** @domName NotificationCenter.checkPermission */
int checkPermission() native "NotificationCenter_checkPermission_Callback";
@@ -26765,7 +26717,10 @@ class Window extends EventTarget implements WindowBase {
/** @domName DOMWindow.webkitNotifications */
- NotificationCenter get webkitNotifications native "DOMWindow_webkitNotifications_Getter";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ NotificationCenter get notifications native "DOMWindow_webkitNotifications_Getter";
/** @domName DOMWindow.webkitStorageInfo */
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/audiocontext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698