OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebNotificationManager_h | 5 #ifndef WebNotificationManager_h |
6 #define WebNotificationManager_h | 6 #define WebNotificationManager_h |
7 | 7 |
8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
10 #include "public/platform/WebVector.h" | 10 #include "public/platform/WebVector.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 | 51 |
52 // Closes a persistent notification identified by its persistent notificatio n Id. | 52 // Closes a persistent notification identified by its persistent notificatio n Id. |
53 virtual void closePersistent(const WebSecurityOrigin&, int64_t persistentNot ificationId) = 0; | 53 virtual void closePersistent(const WebSecurityOrigin&, int64_t persistentNot ificationId) = 0; |
54 | 54 |
55 // Indicates that the delegate object is being destroyed, and must no longer | 55 // Indicates that the delegate object is being destroyed, and must no longer |
56 // be used by the embedder to dispatch events. | 56 // be used by the embedder to dispatch events. |
57 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; | 57 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; |
58 | 58 |
59 // Synchronously checks the permission level for the given origin. | 59 // Synchronously checks the permission level for the given origin. |
60 virtual WebNotificationPermission checkPermission(const WebSecurityOrigin&) = 0; | 60 virtual WebNotificationPermission checkPermission(const WebSecurityOrigin&) = 0; |
61 | |
62 // Returns the maximum number of action buttons supported by the embedder. | |
Peter Beverloo
2015/07/31 12:28:58
s/action buttons/actions/
| |
63 virtual size_t maxActions() { return 0; } // TODO(johnme): Make pure virtual . | |
Peter Beverloo
2015/07/31 12:28:58
nit: Please place the TODO on the line above.
| |
61 }; | 64 }; |
62 | 65 |
63 } // namespace blink | 66 } // namespace blink |
64 | 67 |
65 #endif // WebNotificationManager_h | 68 #endif // WebNotificationManager_h |
OLD | NEW |