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/WebNotificationManager.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/platform/WebNotificationDelegate.h ('k') | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebNotificationManager_h
6 #define WebNotificationManager_h
7
8 #include "WebNotificationPermission.h"
9
10 namespace blink {
11
12 struct WebNotificationData;
13 class WebNotificationDelegate;
14 class WebSerializedOrigin;
15
16 // Provides the services to show platform notifications to the user.
17 class WebNotificationManager {
18 public:
19 virtual ~WebNotificationManager() { }
20
21 // Shows a notification on the user's system.
22 virtual void show(const blink::WebSerializedOrigin&, const WebNotificationDa ta&, WebNotificationDelegate*) = 0;
23
24 // Closes a notification previously shown, and removes it if being shown.
25 virtual void close(WebNotificationDelegate*) = 0;
26
27 // Indicates that the delegate object is being destroyed, and must no longer
28 // be used by the embedder to dispatch events.
29 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0;
30
31 // Synchronously checks the permission level for the given origin.
32 virtual WebNotificationPermission checkPermission(const WebSerializedOrigin& ) = 0;
33 };
34
35 } // namespace blink
36
37 #endif // WebNotificationManager_h
OLDNEW
« no previous file with comments | « public/platform/WebNotificationDelegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698