Index: Source/modules/presentation/Presentation.cpp |
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp |
index ac51b38c087e64c80392ae94541bbdba7c3269fa..e017dfee3c0b8c086e9e220d7b642cfa1a238546 100644 |
--- a/Source/modules/presentation/Presentation.cpp |
+++ b/Source/modules/presentation/Presentation.cpp |
@@ -5,6 +5,10 @@ |
#include "config.h" |
#include "modules/presentation/Presentation.h" |
+#include "bindings/core/v8/ScriptPromise.h" |
+#include "bindings/core/v8/ScriptPromiseResolver.h" |
+#include "bindings/core/v8/ScriptState.h" |
+#include "core/dom/DOMException.h" |
#include "modules/EventTargetModules.h" |
namespace blink { |
@@ -37,6 +41,28 @@ ExecutionContext* Presentation::executionContext() const |
void Presentation::trace(Visitor* visitor) |
{ |
EventTargetWithInlineData::trace(visitor); |
+ visitor->trace(m_session); |
sof
2014/10/31 13:28:47
nit: the convention is to trace the local members
|
+} |
+ |
+PresentationSession* Presentation::session() const |
+{ |
+ return m_session.get(); |
+} |
+ |
+ScriptPromise Presentation::startSession(ScriptState* state, const String& senderId, const String& presentationId) |
+{ |
+ RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state); |
+ ScriptPromise promise = resolver->promise(); |
+ resolver->reject(DOMException::create(NotSupportedError, "The method is not supported yet.")); |
+ return promise; |
+} |
+ |
+ScriptPromise Presentation::joinSession(ScriptState* state, const String& senderId, const String& presentationId) |
+{ |
+ RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state); |
+ ScriptPromise promise = resolver->promise(); |
+ resolver->reject(DOMException::create(NotSupportedError, "The method is not supported yet.")); |
+ return promise; |
} |
} // namespace blink |