OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebNotificationDelegate_h | 5 #ifndef WebNotificationDelegate_h |
6 #define WebNotificationDelegate_h | 6 #define WebNotificationDelegate_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 class WebString; | |
11 | |
10 // A delegate through which the embedder can trigger events on a Document-bound | 12 // A delegate through which the embedder can trigger events on a Document-bound |
11 // Web Notifications object. Service Worker-bound Web Notifications will not hav e | 13 // Web Notifications object. Service Worker-bound Web Notifications will not hav e |
12 // a delegate, as their events will be fired on a Service Worker instead. | 14 // a delegate, as their events will be fired on a Service Worker instead. |
13 class WebNotificationDelegate { | 15 class WebNotificationDelegate { |
14 public: | 16 public: |
15 virtual void dispatchClickEvent() = 0; | 17 virtual void didShowNotification(const WebString& notificationId) = 0; |
16 virtual void dispatchShowEvent() = 0; | 18 virtual void didClickNotification() = 0; |
19 virtual void didCloseNotification() = 0; | |
20 | |
17 virtual void dispatchErrorEvent() = 0; | 21 virtual void dispatchErrorEvent() = 0; |
johnme
2016/09/23 16:14:58
Remove this from WebNotificationDelegate. It's onl
Peter Beverloo
2016/10/04 10:27:23
Done.
| |
18 virtual void dispatchCloseEvent() = 0; | |
19 }; | 22 }; |
20 | 23 |
21 } // namespace blink | 24 } // namespace blink |
22 | 25 |
23 #endif // WebNotificationDelegate_h | 26 #endif // WebNotificationDelegate_h |
OLD | NEW |