OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "core/dom/DOMTimeStamp.h" | 39 #include "core/dom/DOMTimeStamp.h" |
40 #include "modules/EventTargetModules.h" | 40 #include "modules/EventTargetModules.h" |
41 #include "modules/ModulesExport.h" | 41 #include "modules/ModulesExport.h" |
42 #include "modules/vibration/NavigatorVibration.h" | 42 #include "modules/vibration/NavigatorVibration.h" |
43 #include "platform/AsyncMethodRunner.h" | 43 #include "platform/AsyncMethodRunner.h" |
44 #include "platform/heap/Handle.h" | 44 #include "platform/heap/Handle.h" |
45 #include "platform/weborigin/KURL.h" | 45 #include "platform/weborigin/KURL.h" |
46 #include "public/platform/WebVector.h" | 46 #include "public/platform/WebVector.h" |
47 #include "public/platform/modules/notifications/WebNotificationData.h" | 47 #include "public/platform/modules/notifications/WebNotificationData.h" |
48 #include "public/platform/modules/notifications/WebNotificationDelegate.h" | 48 #include "public/platform/modules/notifications/WebNotificationDelegate.h" |
| 49 #include "public/platform/modules/permissions/permission.mojom-blink.h" |
49 #include "public/platform/modules/permissions/permission_status.mojom-blink.h" | 50 #include "public/platform/modules/permissions/permission_status.mojom-blink.h" |
50 | 51 |
51 namespace blink { | 52 namespace blink { |
52 | 53 |
53 class ExecutionContext; | 54 class ExecutionContext; |
54 class NotificationAction; | 55 class NotificationAction; |
55 class NotificationManager; | 56 class NotificationManager; |
56 class NotificationOptions; | 57 class NotificationOptions; |
57 class NotificationPermissionCallback; | 58 class NotificationPermissionCallback; |
58 class NotificationResourcesLoader; | 59 class NotificationResourcesLoader; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 NotificationStateIdle, | 151 NotificationStateIdle, |
151 NotificationStateShowing, | 152 NotificationStateShowing, |
152 NotificationStateClosing, | 153 NotificationStateClosing, |
153 NotificationStateClosed | 154 NotificationStateClosed |
154 }; | 155 }; |
155 | 156 |
156 // Only to be used by the Notification::create() method when notifications w
ere created | 157 // Only to be used by the Notification::create() method when notifications w
ere created |
157 // by the embedder rather than by Blink. | 158 // by the embedder rather than by Blink. |
158 void setState(NotificationState state) { m_state = state; } | 159 void setState(NotificationState state) { m_state = state; } |
159 | 160 |
| 161 static void onPermissionRequestComplete(mojom::blink::PermissionServicePtr,
ScriptPromiseResolver*, NotificationPermissionCallback*, mojom::blink::Permissio
nStatus); |
| 162 |
160 NotificationState m_state; | 163 NotificationState m_state; |
| 164 mojom::blink::PermissionServicePtr m_permissionService; |
161 | 165 |
162 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; | 166 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; |
163 | 167 |
164 Member<NotificationResourcesLoader> m_loader; | 168 Member<NotificationResourcesLoader> m_loader; |
165 }; | 169 }; |
166 | 170 |
167 } // namespace blink | 171 } // namespace blink |
168 | 172 |
169 #endif // Notification_h | 173 #endif // Notification_h |
OLD | NEW |