| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "modules/serviceworkers/ExtendableEvent.h" | 31 #include "modules/serviceworkers/ExtendableEvent.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptWrappable.h" | 33 #include "bindings/core/v8/ScriptWrappable.h" |
| 34 #include "modules/serviceworkers/WaitUntilObserver.h" | 34 #include "modules/serviceworkers/WaitUntilObserver.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 RawPtr<ExtendableEvent> ExtendableEvent::create() | 38 ExtendableEvent* ExtendableEvent::create() |
| 39 { | 39 { |
| 40 return new ExtendableEvent(); | 40 return new ExtendableEvent(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 RawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicString& type, const
ExtendableEventInit& eventInit) | 43 ExtendableEvent* ExtendableEvent::create(const AtomicString& type, const Extenda
bleEventInit& eventInit) |
| 44 { | 44 { |
| 45 return new ExtendableEvent(type, eventInit); | 45 return new ExtendableEvent(type, eventInit); |
| 46 } | 46 } |
| 47 | 47 |
| 48 RawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicString& type, const
ExtendableEventInit& eventInit, WaitUntilObserver* observer) | 48 ExtendableEvent* ExtendableEvent::create(const AtomicString& type, const Extenda
bleEventInit& eventInit, WaitUntilObserver* observer) |
| 49 { | 49 { |
| 50 return new ExtendableEvent(type, eventInit, observer); | 50 return new ExtendableEvent(type, eventInit, observer); |
| 51 } | 51 } |
| 52 | 52 |
| 53 ExtendableEvent::~ExtendableEvent() | 53 ExtendableEvent::~ExtendableEvent() |
| 54 { | 54 { |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ExtendableEvent::waitUntil(ScriptState* scriptState, ScriptPromise scriptPr
omise, ExceptionState& exceptionState) | 57 void ExtendableEvent::waitUntil(ScriptState* scriptState, ScriptPromise scriptPr
omise, ExceptionState& exceptionState) |
| 58 { | 58 { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 80 return EventNames::ExtendableEvent; | 80 return EventNames::ExtendableEvent; |
| 81 } | 81 } |
| 82 | 82 |
| 83 DEFINE_TRACE(ExtendableEvent) | 83 DEFINE_TRACE(ExtendableEvent) |
| 84 { | 84 { |
| 85 visitor->trace(m_observer); | 85 visitor->trace(m_observer); |
| 86 Event::trace(visitor); | 86 Event::trace(visitor); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |