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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 { | 47 { |
48 return adoptRefWillBeNoop(new InstallEvent(type, initializer, observer)); | 48 return adoptRefWillBeNoop(new InstallEvent(type, initializer, observer)); |
49 } | 49 } |
50 | 50 |
51 void InstallEvent::replace() | 51 void InstallEvent::replace() |
52 { | 52 { |
53 // FIXME: implement. | 53 // FIXME: implement. |
54 notImplemented(); | 54 notImplemented(); |
55 } | 55 } |
56 | 56 |
57 ScriptPromise InstallEvent::reloadAll(ScriptState* scriptState) | |
58 { | |
59 // FIXME: implement. | |
60 notImplemented(); | |
61 | |
62 // For now this just returns a promise which is already rejected. | |
63 return ScriptPromise::reject(scriptState, v8::Null(scriptState->isolate())); | |
64 } | |
65 | |
66 const AtomicString& InstallEvent::interfaceName() const | 57 const AtomicString& InstallEvent::interfaceName() const |
67 { | 58 { |
68 return EventNames::InstallEvent; | 59 return EventNames::InstallEvent; |
69 } | 60 } |
70 | 61 |
71 InstallEvent::InstallEvent() | 62 InstallEvent::InstallEvent() |
72 { | 63 { |
73 } | 64 } |
74 | 65 |
75 InstallEvent::InstallEvent(const AtomicString& type, const EventInit& initialize
r, WaitUntilObserver* observer) | 66 InstallEvent::InstallEvent(const AtomicString& type, const EventInit& initialize
r, WaitUntilObserver* observer) |
76 : ExtendableEvent(type, initializer, observer) | 67 : ExtendableEvent(type, initializer, observer) |
77 { | 68 { |
78 } | 69 } |
79 | 70 |
80 void InstallEvent::trace(Visitor* visitor) | 71 void InstallEvent::trace(Visitor* visitor) |
81 { | 72 { |
82 ExtendableEvent::trace(visitor); | 73 ExtendableEvent::trace(visitor); |
83 } | 74 } |
84 | 75 |
85 } // namespace blink | 76 } // namespace blink |
OLD | NEW |