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

Unified Diff: public/platform/WebNotificationDelegate.h

Issue 672183003: Add the Blink APIs for the WebNotificationManager. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add file comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebNotificationData.h ('k') | public/platform/WebNotificationManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebNotificationDelegate.h
diff --git a/public/platform/WebNotificationDelegate.h b/public/platform/WebNotificationDelegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c77233e2320a4fbea7d8a069d44734d8900ceed
--- /dev/null
+++ b/public/platform/WebNotificationDelegate.h
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebNotificationDelegate_h
+#define WebNotificationDelegate_h
+
+namespace blink {
+
+// A delegate through which the embedder can trigger events on a Document-bound
+// Web Notifications object. Service Worker-bound Web Notifications will not have
+// a delegate, as their events will be fired on a Service Worker instead.
+class WebNotificationDelegate {
+public:
+ virtual void dispatchClickEvent() = 0;
+ virtual void dispatchShowEvent() = 0;
+ virtual void dispatchErrorEvent() = 0;
+ virtual void dispatchCloseEvent() = 0;
+};
+
+} // namespace blink
+
+#endif // WebNotificationDelegate_h
« no previous file with comments | « public/platform/WebNotificationData.h ('k') | public/platform/WebNotificationManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698