summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/notifications/NotificationOptions.idl
blob: 9b1ded4b9538fc82d59e566b404f7e542d279031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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.

// https://notifications.spec.whatwg.org/#api

enum NotificationDirection {
    "auto",
    "ltr",
    "rtl"
};

dictionary NotificationOptions {
    NotificationDirection dir = "auto";
    DOMString lang = "";
    DOMString body = "";
    DOMString tag = "";
    USVString icon;
    // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<unsigned long>)
    (unsigned long or sequence<unsigned long>) vibrate;
    DOMTimeStamp timestamp;
    boolean renotify = false;
    boolean silent = false;
    boolean requireInteraction = false;
    any data = null;
    sequence<NotificationAction> actions = [];
};