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
3// found in the LICENSE file.
4
5// https://notifications.spec.whatwg.org/#api
6
7enum NotificationDirection {
8    "auto",
9    "ltr",
10    "rtl"
11};
12
13dictionary NotificationOptions {
14    NotificationDirection dir = "auto";
15    DOMString lang = "";
16    DOMString body = "";
17    DOMString tag = "";
18    [RuntimeEnabled=NotificationContentImage] USVString image;
19    USVString icon;
20    USVString badge;
21    // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<unsigned long>)
22    (unsigned long or sequence<unsigned long>) vibrate;
23    DOMTimeStamp timestamp;
24    boolean renotify = false;
25    boolean silent = false;
26    boolean requireInteraction = false;
27    any data = null;
28    sequence<NotificationAction> actions = [];
29    [RuntimeEnabled=NotificationTriggers] TimestampTrigger showTrigger;
30};
31