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

Unified Diff: Source/modules/presentation/PresentationController.h

Issue 1002293005: [PresentationAPI] Plumbing send() from PresentationSession IDL to platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test: change postMessage to send. Created 5 years, 8 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: Source/modules/presentation/PresentationController.h
diff --git a/Source/modules/presentation/PresentationController.h b/Source/modules/presentation/PresentationController.h
index cc6c3c2c8ddea430badf6aa252aae53cfad29f81..41cfd0bdde44ba41e8e9fd60b75d530461934caf 100644
--- a/Source/modules/presentation/PresentationController.h
+++ b/Source/modules/presentation/PresentationController.h
@@ -56,6 +56,12 @@ public:
// Called when the frame wants to join an existing presentation.
void joinSession(const String& presentationUrl, const String& presentationId, WebPresentationSessionClientCallbacks*);
+ // Called when the frame wants to send String message to an existing presentation.
+ void send(const String& presentationUrl, const String& presentationId, const String& message);
+
+ // Called when the frame wants to send ArrayBuffer/View data to an existing presentation.
+ void send(const String& presentationUrl, const String& presentationId, const uint8_t* data, size_t length);
+
// Called when the frame wants to close an existing presentation.
void closeSession(const String& url, const String& presentationId);
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/modules/presentation/PresentationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698