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

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

Issue 2547143002: [Presentation API] fire onconnectionavailable and onconnect event asynchronously (Closed)
Patch Set: fire onconnectionavailable event in ::take() instead of PresentationConnectionCallbacks Created 4 years 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/PresentationRequest.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.h b/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
index 70cd618b38c7cb291353e6c0a77bfb31ca8ba5ec..0c2da9f7b89af5dbd43eb4bfc9ee3322345b5bae 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
@@ -15,6 +15,8 @@
namespace blink {
+class PresentationConnection;
+
// Implements the PresentationRequest interface from the Presentation API from
// which websites can start or join presentation connections.
class PresentationRequest final : public EventTargetWithInlineData,
@@ -45,6 +47,8 @@ class PresentationRequest final : public EventTargetWithInlineData,
DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
+ void dispatchConnectionAvailableEvent(PresentationConnection*);
+
DECLARE_VIRTUAL_TRACE();
protected:

Powered by Google App Engine
This is Rietveld 408576698