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

Unified Diff: public/platform/WebNotificationDelegate.h

Issue 584023002: [WIP] Implement Notifications through Platform instead of WebFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 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..4ef96516491159e884d277baf87e1e627324871b
--- /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
« 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