Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(978)

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp

Issue 2265363002: [Presentation API] make PresentationReceiver API consistent with latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve code review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
index f7b4cbaf09ce26abe94dad1f992c119304be4fdf..0c77e4b5226a6d0bfe1c89c3e1112789b957d320 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "modules/presentation/PresentationReceiver.h"
+#include "modules/presentation/PresentationConnectionList.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "core/dom/DOMException.h"
@@ -18,29 +19,13 @@ PresentationReceiver::PresentationReceiver(LocalFrame* frame)
{
}
-const AtomicString& PresentationReceiver::interfaceName() const
+ScriptPromise PresentationReceiver::connectionList(ScriptState* scriptState)
{
- return EventTargetNames::PresentationReceiver;
-}
-
-ExecutionContext* PresentationReceiver::getExecutionContext() const
-{
- return frame() ? frame()->document() : nullptr;
-}
-
-ScriptPromise PresentationReceiver::getConnection(ScriptState* scriptState)
-{
- return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, "PresentationReceiver::getConnection() is not implemented yet."));
-}
-
-ScriptPromise PresentationReceiver::getConnections(ScriptState* scriptState)
-{
- return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, "PresentationReceiver::getConnections() is not implemented yet."));
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, "PresentationReceiver::connectionList() is not implemented yet."));
}
DEFINE_TRACE(PresentationReceiver)
{
- EventTargetWithInlineData::trace(visitor);
DOMWindowProperty::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698