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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.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/PresentationConnection.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
index 323c6a38f42c7c8e9b28cb3241ff5f630d0f2e07..c2e80f18f0322bdfba44637049958a5be0bfe7e1 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
@@ -114,6 +114,10 @@ class PresentationConnection final : public EventTargetWithInlineData,
void didFinishLoadingBlob(DOMArrayBuffer*);
void didFailLoadingBlob(FileError::ErrorCode);
+ // Internal helper function to dispatch connect event asynchronously.
mark a. foltz 2016/12/07 04:23:55 ...dispatch state change events...
zhaobin 2016/12/07 19:30:43 Done.
+ void dispatchEventAsync(Event*);
+ void dispatchStateChangeEvent(Event*);
+
// Cancel loads and pending messages when the connection is closed.
void tearDown();

Powered by Google App Engine
This is Rietveld 408576698