libservo: Expand documentation for WebView methods. - #45467
Conversation
WebView methods.WebView methods.
| /// given `message`, and the embedder will be notified via | ||
| /// [`WebViewDelegate::notify_crashed`]. | ||
| /// | ||
| /// TODO: Describe the use case for this API? |
There was a problem hiding this comment.
@mrobinson I couldn't figure out the use case for this API as this is not used in servoshell. Is it used for testing?
There was a problem hiding this comment.
I think this is unused actually. Let's skip documentation now and then please open a PR to remove it and the EmbedderToConstellationMessage::SendError variant as well.
| Panic(WebViewId, String, Option<String>), | ||
| /// A webview potentially gained focus for keyboard events. | ||
| /// If the boolean value is false, the webiew could not be focused. | ||
| /// If the boolean value is false, the webview could not be focused. |
There was a problem hiding this comment.
| /// If the boolean value is false, the webview could not be focused. | |
| /// If the boolean value is false, the `WebView` could not be focused. |
There was a problem hiding this comment.
There were other instances in this enum's documentation where webview was used. I've changed those as well in fc1d832.
| /// given `message`, and the embedder will be notified via | ||
| /// [`WebViewDelegate::notify_crashed`]. | ||
| /// | ||
| /// TODO: Describe the use case for this API? |
There was a problem hiding this comment.
I think this is unused actually. Let's skip documentation now and then please open a PR to remove it and the EmbedderToConstellationMessage::SendError variant as well.
Also add documention for few more types in `webview_delegate.rs`. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2b3e9e2 to
fc1d832
Compare
Also add documentation for few more types in `webview_delegate.rs`. Testing: Not needed as there are no code changes. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Also add documentation for few more types in
webview_delegate.rs.Testing: Not needed as there are no code changes.