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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationOptions.idl

Issue 1750083004: Add badge to web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://notifications.spec.whatwg.org/#api 5 // https://notifications.spec.whatwg.org/#api
6 6
7 enum NotificationDirection { 7 enum NotificationDirection {
8 "auto", 8 "auto",
9 "ltr", 9 "ltr",
10 "rtl" 10 "rtl"
11 }; 11 };
12 12
13 dictionary NotificationOptions { 13 dictionary NotificationOptions {
14 NotificationDirection dir = "auto"; 14 NotificationDirection dir = "auto";
15 DOMString lang = ""; 15 DOMString lang = "";
16 DOMString body = ""; 16 DOMString body = "";
17 DOMString tag = ""; 17 DOMString tag = "";
18 USVString icon; 18 USVString icon;
19 [RuntimeEnabled=NotificationExperimental] USVString smallIcon = "";
Peter Beverloo 2016/03/03 17:55:39 Why does this have a default value, but `icon` doe
Michael van Ouwerkerk 2016/03/09 18:28:25 Done.
19 // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<un signed long>) 20 // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<un signed long>)
20 (unsigned long or sequence<unsigned long>) vibrate; 21 (unsigned long or sequence<unsigned long>) vibrate;
21 DOMTimeStamp timestamp; 22 DOMTimeStamp timestamp;
22 boolean renotify = false; 23 boolean renotify = false;
23 boolean silent = false; 24 boolean silent = false;
24 boolean requireInteraction = false; 25 boolean requireInteraction = false;
25 any data = null; 26 any data = null;
26 sequence<NotificationAction> actions = []; 27 sequence<NotificationAction> actions = [];
27 }; 28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698