Commit 643a5e3d authored by Daniel Nicoara's avatar Daniel Nicoara Committed by Commit Bot

cast: webview: Add support for JS message channel notifications

Create a message that will be used by JS message channels to pass data
back into the Webview client.

Bug: b/141864193
Test: Compiled
Change-Id: Iada17bc8f3cf1276f3a59813406f67bc43af8247
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850363Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
Commit-Queue: Daniel Nicoara <dnicoara@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704613}
parent b4798f50
......@@ -179,6 +179,11 @@ enum NavigationDecision {
PREVENT = 1;
}
message JavascriptChannelMessage {
string channel = 1;
string message = 2;
}
message WebviewRequest {
// Unique identifier for the request. For requests that will have a response,
// the response id will match the request id.
......@@ -239,6 +244,9 @@ message WebviewResponse {
GetTitleResponse get_title = 7;
// Triggered by web navigation events inside the webview.
NavigationRequestEvent navigation_event = 9;
// Events sents from JS inside of Webviews to the embedder who added JS
// channels via AddJavascriptChannelsRequest.
JavascriptChannelMessage javascript_channel_message = 10;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment