| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // TODO(crbug.com/1227712): Migrate syntax and remove this. |
| library chromium.cast; |
| |
| using fuchsia.media.sessions2; |
| |
| /// Allows clients to access and modify certain aspects of the Cast receiver |
| /// application runtime. |
| protocol ApplicationController { |
| /// Enables or disables touch event processing. |
| SetTouchInputEnabled(struct { |
| enable bool; |
| }); |
| |
| /// Sets whether to block all HTMLMediaElements in the frame from fetching and |
| /// loading media resources. |
| /// See fuchsia.web.Frame for usage details. |
| SetBlockMediaLoading(struct { |
| blocked bool; |
| }); |
| |
| /// Connects to the application's media control & observation API. |
| GetMediaPlayer(resource struct { |
| request server_end:fuchsia.media.sessions2.Player; |
| }); |
| |
| /// Gets the private memory footprint of the application's main frame. |
| GetPrivateMemorySize() -> (struct { |
| size_bytes uint64; |
| }); |
| }; |