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

Unified Diff: Source/modules/notifications/NotificationOptions.idl

Issue 556193002: Add NotificationOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@dic-webmidi
Patch Set: Created 6 years, 3 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:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/notifications/NotificationOptions.idl
diff --git a/Source/modules/notifications/NotificationOptions.idl b/Source/modules/notifications/NotificationOptions.idl
new file mode 100644
index 0000000000000000000000000000000000000000..18c2f86f1d9e1de5b25b13e52eff319c944c5216
--- /dev/null
+++ b/Source/modules/notifications/NotificationOptions.idl
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// http://www.w3.org/TR/notifications/#notification
Peter Beverloo 2014/09/10 14:30:34 nit: We follow the object in the WHATWG spec: ht
bashi 2014/09/10 15:02:01 Ah, I was looking at a different spec.. Changed.
+
+enum NotificationDirection {
+ "auto",
+ "ltr",
+ "rtl"
+};
+
+[
+ GarbageCollected
+] dictionary NotificationOptions {
+ NotificationDirection dir = "auto";
+ DOMString lang = "";
+ DOMString body;
+ DOMString tag;
+ DOMString icon;
+};

Powered by Google App Engine
This is Rietveld 408576698