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

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

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
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 8b45becf1816591139c73d7145c0387667b14187..ce209c457387adddac1a6e06b08cea32c84f440f 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -18648,9 +18648,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";
@@ -27009,7 +27015,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 */

Powered by Google App Engine
This is Rietveld 408576698