OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/presentation/PresentationReceiver.h" | 5 #include "modules/presentation/PresentationReceiver.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptPromise.h" | 7 #include "bindings/core/v8/ScriptPromise.h" |
8 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| 11 #include "core/frame/LocalFrame.h" |
11 #include "modules/EventTargetModules.h" | 12 #include "modules/EventTargetModules.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 PresentationReceiver::PresentationReceiver(LocalFrame* frame) | 16 PresentationReceiver::PresentationReceiver(LocalFrame* frame) |
16 : DOMWindowProperty(frame) | 17 : DOMWindowProperty(frame) |
17 { | 18 { |
18 } | 19 } |
19 | 20 |
20 const AtomicString& PresentationReceiver::interfaceName() const | 21 const AtomicString& PresentationReceiver::interfaceName() const |
(...skipping 16 matching lines...) Expand all Loading... |
37 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError, "PresentationReceiver::getConnections() is not implemented
yet.")); | 38 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError, "PresentationReceiver::getConnections() is not implemented
yet.")); |
38 } | 39 } |
39 | 40 |
40 DEFINE_TRACE(PresentationReceiver) | 41 DEFINE_TRACE(PresentationReceiver) |
41 { | 42 { |
42 EventTargetWithInlineData::trace(visitor); | 43 EventTargetWithInlineData::trace(visitor); |
43 DOMWindowProperty::trace(visitor); | 44 DOMWindowProperty::trace(visitor); |
44 } | 45 } |
45 | 46 |
46 } // namespace blink | 47 } // namespace blink |
OLD | NEW |