| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "public/platform/modules/permissions/permission_status.mojom-blink.h" | 50 #include "public/platform/modules/permissions/permission_status.mojom-blink.h" |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 class ExecutionContext; | 54 class ExecutionContext; |
| 55 class NotificationOptions; | 55 class NotificationOptions; |
| 56 class NotificationPermissionCallback; | 56 class NotificationPermissionCallback; |
| 57 class NotificationResourcesLoader; | 57 class NotificationResourcesLoader; |
| 58 class ScriptState; | 58 class ScriptState; |
| 59 | 59 |
| 60 class MODULES_EXPORT Notification final : public EventTargetWithInlineData, | 60 class MODULES_EXPORT Notification final |
| 61 public ActiveScriptWrappable, | 61 : public EventTargetWithInlineData, |
| 62 public SuspendableObject, | 62 public ActiveScriptWrappable<Notification>, |
| 63 public WebNotificationDelegate { | 63 public SuspendableObject, |
| 64 public WebNotificationDelegate { |
| 64 USING_GARBAGE_COLLECTED_MIXIN(Notification); | 65 USING_GARBAGE_COLLECTED_MIXIN(Notification); |
| 65 DEFINE_WRAPPERTYPEINFO(); | 66 DEFINE_WRAPPERTYPEINFO(); |
| 66 | 67 |
| 67 public: | 68 public: |
| 68 // Used for JavaScript instantiations of non-persistent notifications. Will | 69 // Used for JavaScript instantiations of non-persistent notifications. Will |
| 69 // automatically schedule for the notification to be displayed to the user | 70 // automatically schedule for the notification to be displayed to the user |
| 70 // when the developer-provided data is valid. | 71 // when the developer-provided data is valid. |
| 71 static Notification* create(ExecutionContext*, | 72 static Notification* create(ExecutionContext*, |
| 72 const String& title, | 73 const String& title, |
| 73 const NotificationOptions&, | 74 const NotificationOptions&, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 String m_notificationId; | 177 String m_notificationId; |
| 177 | 178 |
| 178 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; | 179 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; |
| 179 | 180 |
| 180 Member<NotificationResourcesLoader> m_loader; | 181 Member<NotificationResourcesLoader> m_loader; |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 } // namespace blink | 184 } // namespace blink |
| 184 | 185 |
| 185 #endif // Notification_h | 186 #endif // Notification_h |
| OLD | NEW |