| 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
|
|
|