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

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

Issue 2340433003: [Presentation API] 1-UA: notify receiver page when receiver connection becomes available (blink sid… (Closed)
Patch Set: resolve code review comments from dcheng Created 4 years, 3 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.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
index 9b772f99332c9d7d3f6f62d62aa7cbf1636122a2..2f4e1114c0ba29cfb07cc9e7614f698fd0a1c0ef 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
@@ -13,32 +13,36 @@
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
#include "platform/heap/Heap.h"
+#include "public/platform/modules/presentation/WebPresentationReceiver.h"
namespace blink {
class PresentationConnection;
class PresentationConnectionList;
+class WebPresentationClient;
class WebPresentationConnectionClient;
// Implements the PresentationReceiver interface from the Presentation API from
// which websites can implement the receiving side of a presentation session.
class MODULES_EXPORT PresentationReceiver final
- : public GarbageCollected<PresentationReceiver>
+ : public GarbageCollectedFinalized<PresentationReceiver>
, public ScriptWrappable
- , public DOMWindowProperty {
+ , public DOMWindowProperty
+ , public WebPresentationReceiver {
USING_GARBAGE_COLLECTED_MIXIN(PresentationReceiver);
DEFINE_WRAPPERTYPEINFO();
-
- using ConnectionListProperty = ScriptPromiseProperty<Member<PresentationReceiver>, Member<PresentationConnectionList>, Member<DOMException>>;
+ using ConnectionListProperty = ScriptPromiseProperty<Member<PresentationReceiver>, Member<PresentationConnectionList>,
+ Member<DOMException>>;
public:
- explicit PresentationReceiver(LocalFrame*);
+ explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
~PresentationReceiver() = default;
// PresentationReceiver.idl implementation
ScriptPromise connectionList(ScriptState*);
- void onConnectionReceived(WebPresentationConnectionClient*);
+ // Implementation of WebPresentationController.
+ void onReceiverConnectionAvailable(WebPresentationConnectionClient*) override;
void registerConnection(PresentationConnection*);
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698