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

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

Issue 14384004: Get rid of [Callback] extended attribute for parameters in IDL files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix whitespace issue in generated bindings Created 7 years, 7 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS 43 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS
44 void cancel(); 44 void cancel();
45 #endif 45 #endif
46 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS 46 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
47 void close(); 47 void close();
48 #endif 48 #endif
49 49
50 50
51 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS 51 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
52 [CallWith=ScriptExecutionContext] static readonly attribute DOMString permis sion; 52 [CallWith=ScriptExecutionContext] static readonly attribute DOMString permis sion;
53 [CallWith=ScriptExecutionContext] static void requestPermission([Callback] o ptional NotificationPermissionCallback callback); 53 [CallWith=ScriptExecutionContext] static void requestPermission(optional Not ificationPermissionCallback callback);
54 #endif 54 #endif
55 55
56 attribute EventListener onshow; 56 attribute EventListener onshow;
57 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS 57 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS
58 attribute EventListener ondisplay; 58 attribute EventListener ondisplay;
59 #endif 59 #endif
60 attribute EventListener onerror; 60 attribute EventListener onerror;
61 attribute EventListener onclose; 61 attribute EventListener onclose;
62 attribute EventListener onclick; 62 attribute EventListener onclick;
63 63
64 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS 64 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS
65 attribute DOMString dir; 65 attribute DOMString dir;
66 attribute DOMString replaceId; 66 attribute DOMString replaceId;
67 #endif 67 #endif
68 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS 68 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
69 attribute DOMString tag; 69 attribute DOMString tag;
70 #endif 70 #endif
71 71
72 // EventTarget interface 72 // EventTarget interface
73 void addEventListener(DOMString type, 73 void addEventListener(DOMString type,
74 EventListener listener, 74 EventListener listener,
75 optional boolean useCapture); 75 optional boolean useCapture);
76 void removeEventListener(DOMString type, 76 void removeEventListener(DOMString type,
77 EventListener listener, 77 EventListener listener,
78 optional boolean useCapture); 78 optional boolean useCapture);
79 [RaisesException] boolean dispatchEvent(Event evt); 79 [RaisesException] boolean dispatchEvent(Event evt);
80 }; 80 };
81 81
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.idl ('k') | Source/modules/notifications/NotificationCenter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698