| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 class ExecutionContext; | 52 class ExecutionContext; |
| 53 class NotificationOptions; | 53 class NotificationOptions; |
| 54 class NotificationPermissionCallback; | 54 class NotificationPermissionCallback; |
| 55 class ScriptState; | 55 class ScriptState; |
| 56 class ScriptValue; | 56 class ScriptValue; |
| 57 class UnsignedLongOrUnsignedLongSequence; | 57 class UnsignedLongOrUnsignedLongSequence; |
| 58 struct WebNotificationData; | 58 struct WebNotificationData; |
| 59 | 59 |
| 60 class MODULES_EXPORT Notification final : public RefCountedGarbageCollectedEvent
TargetWithInlineData<Notification>, public ActiveDOMObject, public WebNotificati
onDelegate { | 60 class MODULES_EXPORT Notification final : public RefCountedGarbageCollectedEvent
TargetWithInlineData<Notification>, public ActiveDOMObject, public WebNotificati
onDelegate { |
| 61 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<N
otification>); | 61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Notification); |
| 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); | 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); |
| 63 DEFINE_WRAPPERTYPEINFO(); | 63 DEFINE_WRAPPERTYPEINFO(); |
| 64 public: | 64 public: |
| 65 // Used for JavaScript instantiations of the Notification object. Will autom
atically schedule for | 65 // Used for JavaScript instantiations of the Notification object. Will autom
atically schedule for |
| 66 // the notification to be displayed to the user. | 66 // the notification to be displayed to the user. |
| 67 static Notification* create(ExecutionContext*, const String& title, const No
tificationOptions&, ExceptionState&); | 67 static Notification* create(ExecutionContext*, const String& title, const No
tificationOptions&, ExceptionState&); |
| 68 | 68 |
| 69 // Used for embedder-created Notification objects. Will initialize the Notif
ication's state as showing. | 69 // Used for embedder-created Notification objects. Will initialize the Notif
ication's state as showing. |
| 70 static Notification* create(ExecutionContext*, int64_t persistentId, const W
ebNotificationData&); | 70 static Notification* create(ExecutionContext*, int64_t persistentId, const W
ebNotificationData&); |
| 71 | 71 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void setState(NotificationState state) { m_state = state; } | 166 void setState(NotificationState state) { m_state = state; } |
| 167 | 167 |
| 168 NotificationState m_state; | 168 NotificationState m_state; |
| 169 | 169 |
| 170 AsyncMethodRunner<Notification> m_asyncRunner; | 170 AsyncMethodRunner<Notification> m_asyncRunner; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace blink | 173 } // namespace blink |
| 174 | 174 |
| 175 #endif // Notification_h | 175 #endif // Notification_h |
| OLD | NEW |