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

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

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 27 matching lines...) Expand all
38 }; 38 };
39 39
40 // https://notifications.spec.whatwg.org/#api 40 // https://notifications.spec.whatwg.org/#api
41 41
42 [ 42 [
43 ActiveScriptWrappable, 43 ActiveScriptWrappable,
44 ConstructorCallWith=ExecutionContext, 44 ConstructorCallWith=ExecutionContext,
45 Constructor(DOMString title, optional NotificationOptions options), 45 Constructor(DOMString title, optional NotificationOptions options),
46 DependentLifetime, 46 DependentLifetime,
47 Exposed=(Window,Worker), 47 Exposed=(Window,Worker),
48 GarbageCollected,
49 MeasureAs=NotificationCreated, 48 MeasureAs=NotificationCreated,
50 RaisesException=Constructor, 49 RaisesException=Constructor,
51 RuntimeEnabled=Notifications, 50 RuntimeEnabled=Notifications,
52 ] interface Notification : EventTarget { 51 ] interface Notification : EventTarget {
53 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl y attribute NotificationPermission permission; 52 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl y attribute NotificationPermission permission;
54 53
55 [CallWith=ScriptState, Exposed=Window, MeasureAs=NotificationPermissionReque sted] static Promise<NotificationPermission> requestPermission(optional Notifica tionPermissionCallback deprecatedCallback); 54 [CallWith=ScriptState, Exposed=Window, MeasureAs=NotificationPermissionReque sted] static Promise<NotificationPermission> requestPermission(optional Notifica tionPermissionCallback deprecatedCallback);
56 55
57 static readonly attribute unsigned long maxActions; 56 static readonly attribute unsigned long maxActions;
58 57
(...skipping 17 matching lines...) Expand all
76 readonly attribute boolean requireInteraction; 75 readonly attribute boolean requireInteraction;
77 [CallWith=ScriptState, SameObject] readonly attribute any data; 76 [CallWith=ScriptState, SameObject] readonly attribute any data;
78 77
79 // 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)
80 // and we've implemented the additional Object.freeze described in 79 // and we've implemented the additional Object.freeze described in
81 // https://notifications.spec.whatwg.org/#dom-notification-actions 80 // https://notifications.spec.whatwg.org/#dom-notification-actions
82 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<Notifi cationAction> actions; 81 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<Notifi cationAction> actions;
83 82
84 [MeasureAs=NotificationClosed] void close(); 83 [MeasureAs=NotificationClosed] void close();
85 }; 84 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/NFC.idl ('k') | third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698