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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 "config.h" | 31 #include "config.h" |
32 #include "InstallEvent.h" | 32 #include "InstallEvent.h" |
33 | 33 |
34 #include "modules/serviceworkers/WaitUntilObserver.h" | 34 #include "modules/serviceworkers/WaitUntilObserver.h" |
35 #include "platform/NotImplemented.h" | |
36 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
37 #include <v8.h> | 36 #include <v8.h> |
38 | 37 |
39 namespace blink { | 38 namespace blink { |
40 | 39 |
41 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create() | 40 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create() |
42 { | 41 { |
43 return adoptRefWillBeNoop(new InstallEvent()); | 42 return adoptRefWillBeNoop(new InstallEvent()); |
44 } | 43 } |
45 | 44 |
46 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& ty
pe, const EventInit& initializer, WaitUntilObserver* observer) | 45 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& ty
pe, const EventInit& initializer, WaitUntilObserver* observer) |
47 { | 46 { |
48 return adoptRefWillBeNoop(new InstallEvent(type, initializer, observer)); | 47 return adoptRefWillBeNoop(new InstallEvent(type, initializer, observer)); |
49 } | 48 } |
50 | 49 |
51 void InstallEvent::replace() | |
52 { | |
53 // FIXME: implement. | |
54 notImplemented(); | |
55 } | |
56 | |
57 const AtomicString& InstallEvent::interfaceName() const | 50 const AtomicString& InstallEvent::interfaceName() const |
58 { | 51 { |
59 return EventNames::InstallEvent; | 52 return EventNames::InstallEvent; |
60 } | 53 } |
61 | 54 |
62 InstallEvent::InstallEvent() | 55 InstallEvent::InstallEvent() |
63 { | 56 { |
64 } | 57 } |
65 | 58 |
66 InstallEvent::InstallEvent(const AtomicString& type, const EventInit& initialize
r, WaitUntilObserver* observer) | 59 InstallEvent::InstallEvent(const AtomicString& type, const EventInit& initialize
r, WaitUntilObserver* observer) |
67 : ExtendableEvent(type, initializer, observer) | 60 : ExtendableEvent(type, initializer, observer) |
68 { | 61 { |
69 } | 62 } |
70 | 63 |
71 void InstallEvent::trace(Visitor* visitor) | 64 void InstallEvent::trace(Visitor* visitor) |
72 { | 65 { |
73 ExtendableEvent::trace(visitor); | 66 ExtendableEvent::trace(visitor); |
74 } | 67 } |
75 | 68 |
76 } // namespace blink | 69 } // namespace blink |
OLD | NEW |