Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blink: Add H5vccMetrics IDL, Blink implementation and Mojom #5047

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yell0wd0g
Copy link
Contributor

This CL adds:

  • A draft H5vccMetrics IDL, resembling Cobalt 25's. Most important change w.r.t. that version is the introduction of an onmetrics Event (with a "tbd" field).
  • The implementation of said IDL, as a simple passthrough to a Mojo interface.
  • The definition of said Mojo interface.

Bug: b/372559349

@yell0wd0g yell0wd0g requested a review from a team as a code owner March 10, 2025 22:27
@yell0wd0g yell0wd0g requested a review from dahlstrom-g March 10, 2025 22:27
@@ -1211,6 +1211,8 @@ if (is_cobalt) {
[
"//third_party/blink/renderer/modules/cobalt/crash_log/crash_log.idl",
"//third_party/blink/renderer/modules/cobalt/encryptedmedia/media_keys_extensions.idl",
"//third_party/blink/renderer/modules/cobalt/h5vcc_metrics/metrics_event.idl",
"//third_party/blink/renderer/modules/cobalt/h5vcc_metrics/h_5_vcc_metrics.idl",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep the original file naming like: h5vcc_metrics.h|idl|cc?

};

interface H5vccMetrics {
AddListener(pending_remote<MetricsListener> listener) => ();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be my ignorance, but how does this map to the current onMetricEvent in H5vccMetrics?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I forgot to tie this in from H5vccMetrics::setOnmetrics() (had it but must have removed it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants