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

Side by Side Diff: public/platform/modules/notifications/WebNotificationDelegate.h

Issue 1311353010: Add a virtual destructor to WebNotificationDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // A delegate through which the embedder can trigger events on a Document-bound 10 // 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 11 // 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. 12 // a delegate, as their events will be fired on a Service Worker instead.
13 class WebNotificationDelegate { 13 class WebNotificationDelegate {
14 public: 14 public:
15 virtual ~WebNotificationDelegate() {}
16
15 virtual void dispatchClickEvent() = 0; 17 virtual void dispatchClickEvent() = 0;
16 virtual void dispatchShowEvent() = 0; 18 virtual void dispatchShowEvent() = 0;
17 virtual void dispatchErrorEvent() = 0; 19 virtual void dispatchErrorEvent() = 0;
18 virtual void dispatchCloseEvent() = 0; 20 virtual void dispatchCloseEvent() = 0;
19 }; 21 };
20 22
21 } // namespace blink 23 } // namespace blink
22 24
23 #endif // WebNotificationDelegate_h 25 #endif // WebNotificationDelegate_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698