Forward accessibility events to the automation extension process.
[chromium-blink-merge.git] / components / html_viewer / web_notification_manager_impl.h
blob1110acabc4ba6197c7bb1aafaecac6181cceec0f
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
8 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h"
10 namespace html_viewer {
12 // TODO(erg): This class is currently a stub; blink expects this object to
13 // exist, and several websites will trigger notifications these days.
14 class WebNotificationManagerImpl : public blink::WebNotificationManager {
15 public:
16 WebNotificationManagerImpl();
17 virtual ~WebNotificationManagerImpl();
19 // blink::WebNotificationManager methods:
20 virtual void show(const blink::WebSerializedOrigin&,
21 const blink::WebNotificationData&,
22 blink::WebNotificationDelegate*);
23 virtual void showPersistent(const blink::WebSerializedOrigin&,
24 const blink::WebNotificationData&,
25 blink::WebServiceWorkerRegistration*,
26 blink::WebNotificationShowCallbacks*);
27 virtual void getNotifications(const blink::WebString& filterTag,
28 blink::WebServiceWorkerRegistration*,
29 blink::WebNotificationGetCallbacks*);
30 virtual void close(blink::WebNotificationDelegate*);
31 virtual void closePersistent(const blink::WebSerializedOrigin&,
32 int64_t persistentNotificationId);
33 virtual void closePersistent(
34 const blink::WebSerializedOrigin&,
35 const blink::WebString& persistentNotificationId);
36 virtual void notifyDelegateDestroyed(blink::WebNotificationDelegate*);
37 virtual blink::WebNotificationPermission checkPermission(
38 const blink::WebSerializedOrigin&);
40 private:
41 DISALLOW_COPY_AND_ASSIGN(WebNotificationManagerImpl);
44 } // namespace html_viewer
46 #endif // COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_