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

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

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 // https://notifications.spec.whatwg.org/#api 40 // https://notifications.spec.whatwg.org/#api
41 41
42 [ 42 [
43 GarbageCollected, 43 GarbageCollected,
44 DependentLifetime, 44 DependentLifetime,
45 Constructor(DOMString title, optional NotificationOptions options), 45 Constructor(DOMString title, optional NotificationOptions options),
46 ConstructorCallWith=ExecutionContext, 46 ConstructorCallWith=ExecutionContext,
47 Exposed=(Window,Worker), 47 Exposed=(Window,Worker),
48 MeasureAs=NotificationCreated, 48 MeasureAs=NotificationCreated,
49 RaisesException=Constructor, 49 RaisesException=Constructor,
50 RequiresFinalizer,
50 RuntimeEnabled=Notifications, 51 RuntimeEnabled=Notifications,
51 ] interface Notification : EventTarget { 52 ] interface Notification : EventTarget {
52 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl y attribute NotificationPermission permission; 53 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl y attribute NotificationPermission permission;
53 54
54 [CallWith=ScriptState, Exposed=Window, MeasureAs=NotificationPermissionReque sted] static Promise<NotificationPermission> requestPermission(optional Notifica tionPermissionCallback deprecatedCallback); 55 [CallWith=ScriptState, Exposed=Window, MeasureAs=NotificationPermissionReque sted] static Promise<NotificationPermission> requestPermission(optional Notifica tionPermissionCallback deprecatedCallback);
55 56
56 static readonly attribute unsigned long maxActions; 57 static readonly attribute unsigned long maxActions;
57 58
58 attribute EventHandler onclick; 59 attribute EventHandler onclick;
59 [MeasureAs=NotificationShowEvent] attribute EventHandler onshow; 60 [MeasureAs=NotificationShowEvent] attribute EventHandler onshow;
(...skipping 14 matching lines...) Expand all
74 readonly attribute boolean requireInteraction; 75 readonly attribute boolean requireInteraction;
75 [CallWith=ScriptState, SameObject] readonly attribute any data; 76 [CallWith=ScriptState, SameObject] readonly attribute any data;
76 77
77 // TODO(johnme): Ship once Blink supports FrozenArray (https://crbug.com/515 920) 78 // TODO(johnme): Ship once Blink supports FrozenArray (https://crbug.com/515 920)
78 // and we've implemented the additional Object.freeze described in 79 // and we've implemented the additional Object.freeze described in
79 // https://notifications.spec.whatwg.org/#dom-notification-actions 80 // https://notifications.spec.whatwg.org/#dom-notification-actions
80 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<Notifi cationAction> actions; 81 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<Notifi cationAction> actions;
81 82
82 [MeasureAs=NotificationClosed] void close(); 83 [MeasureAs=NotificationClosed] void close();
83 }; 84 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698