[fuchsia] Convert all FIDL files to the new syntax
Bug: 1227712 Change-Id: Icdceeb69d447305ecd324b837fb9de6eb1113768 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3058964 Reviewed-by: Wez <wez@chromium.org> Commit-Queue: Alex Zaslavsky <azaslavsky@google.com> Cr-Commit-Position: refs/heads/master@{#907122}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
b9f883f9fb
commit
b6595efc3a
@ -3,10 +3,14 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
library base.testfidl;
|
library base.testfidl;
|
||||||
|
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol TestInterface {
|
protocol TestInterface {
|
||||||
Add(int32 a, int32 b) -> (int32 sum);
|
Add(struct {
|
||||||
|
a int32;
|
||||||
|
b int32;
|
||||||
|
}) -> (struct {
|
||||||
|
sum int32;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.internal;
|
library chromium.internal;
|
||||||
|
|
||||||
using fuchsia.web;
|
using fuchsia.web;
|
||||||
|
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol DevToolsConnector {
|
protocol DevToolsConnector {
|
||||||
/// Connects the supplied listener to receive notifications for this instance.
|
/// Connects the supplied listener to receive notifications for this instance.
|
||||||
ConnectPerContextListener(fuchsia.web.DevToolsPerContextListener listener);
|
ConnectPerContextListener(resource struct {
|
||||||
|
listener client_end:fuchsia.web.DevToolsPerContextListener;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
using fuchsia.mem;
|
using fuchsia.mem;
|
||||||
@ -12,17 +10,22 @@ using fuchsia.web;
|
|||||||
|
|
||||||
/// Provides Cast platform API binding scripts and methods for connecting those
|
/// Provides Cast platform API binding scripts and methods for connecting those
|
||||||
/// scripts with Agent backends.
|
/// scripts with Agent backends.
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol ApiBindings {
|
protocol ApiBindings {
|
||||||
/// Gets the list of bindings to early-inject into the page at load time.
|
/// Gets the list of bindings to early-inject into the page at load time.
|
||||||
GetAll() -> (vector<ApiBinding> bindings);
|
GetAll() -> (resource struct {
|
||||||
|
bindings vector<ApiBinding>;
|
||||||
|
});
|
||||||
|
|
||||||
/// Should be invoked when a connecting a named MessagePort to a native
|
/// Should be invoked when a connecting a named MessagePort to a native
|
||||||
/// bindings backend.
|
/// bindings backend.
|
||||||
Connect(string port_name, fuchsia.web.MessagePort message_port);
|
Connect(resource struct {
|
||||||
|
port_name string;
|
||||||
|
message_port client_end:fuchsia.web.MessagePort;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
resource table ApiBinding {
|
type ApiBinding = resource table {
|
||||||
/// Script to execute before the load of a web document.
|
/// Script to execute before the load of a web document.
|
||||||
1: fuchsia.mem.Buffer before_load_script;
|
1: before_load_script fuchsia.mem.Buffer;
|
||||||
};
|
};
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
using fuchsia.diagnostics;
|
using fuchsia.diagnostics;
|
||||||
@ -12,47 +10,50 @@ using fuchsia.ui.gfx;
|
|||||||
using fuchsia.web;
|
using fuchsia.web;
|
||||||
|
|
||||||
/// Describes the configuration under which a Cast application should run.
|
/// Describes the configuration under which a Cast application should run.
|
||||||
resource table ApplicationConfig {
|
type ApplicationConfig = resource table {
|
||||||
/// Cast application Id.
|
/// Cast application Id.
|
||||||
1: string id;
|
1: id string;
|
||||||
|
|
||||||
/// Name to display to the user when referring to this application.
|
/// Name to display to the user when referring to this application.
|
||||||
2: string display_name;
|
2: display_name string;
|
||||||
|
|
||||||
/// URL from which the application should be loaded, if it has a web-based
|
/// URL from which the application should be loaded, if it has a web-based
|
||||||
/// implementation.
|
/// implementation.
|
||||||
3: string web_url;
|
3: web_url string;
|
||||||
|
|
||||||
4: reserved;
|
4: reserved;
|
||||||
|
|
||||||
// If true, enable remote debugging for this application.
|
// If true, enable remote debugging for this application.
|
||||||
// if false or unset, remote debugging is disabled for this application.
|
// if false or unset, remote debugging is disabled for this application.
|
||||||
5: bool enable_remote_debugging;
|
5: enable_remote_debugging bool;
|
||||||
|
|
||||||
/// List of directories whose contents are served via `fuchsia-dir://`
|
/// List of directories whose contents are served via `fuchsia-dir://`
|
||||||
/// URLs. Networking will be disabled if any directories are set.
|
/// URLs. Networking will be disabled if any directories are set.
|
||||||
6: vector<fuchsia.web.ContentDirectoryProvider>
|
6: content_directories_for_isolated_application vector<fuchsia.web.ContentDirectoryProvider>;
|
||||||
content_directories_for_isolated_application;
|
|
||||||
|
|
||||||
/// The URL of the agent to handle this application.
|
/// The URL of the agent to handle this application.
|
||||||
7: string agent_url;
|
7: agent_url string;
|
||||||
|
|
||||||
/// Simulates a different resolution for rendering.
|
/// Simulates a different resolution for rendering.
|
||||||
8: fuchsia.ui.gfx.vec2 force_content_dimensions;
|
8: force_content_dimensions fuchsia.ui.gfx.vec2;
|
||||||
|
|
||||||
/// List of the web permissions that should be granted to the application.
|
/// List of the web permissions that should be granted to the application.
|
||||||
9: vector<fuchsia.web.PermissionDescriptor> permissions;
|
9: permissions vector<fuchsia.web.PermissionDescriptor>;
|
||||||
|
|
||||||
/// The initial minimum severity of `console` logs that will be logged to the
|
/// The initial minimum severity of `console` logs that will be logged to the
|
||||||
/// [`fuchsia.logger/LogSink`] configured for this application. If not set, no
|
/// [`fuchsia.logger/LogSink`] configured for this application. If not set, no
|
||||||
/// messages will be logged.
|
/// messages will be logged.
|
||||||
// TODO(crbug.com/1088094): Deprecate once there is another mechanism.
|
// TODO(crbug.com/1088094): Deprecate once there is another mechanism.
|
||||||
10: fuchsia.diagnostics.Severity initial_min_console_log_severity;
|
10: initial_min_console_log_severity fuchsia.diagnostics.Severity;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Service interface for working with application configurations.
|
/// Service interface for working with application configurations.
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol ApplicationConfigManager {
|
protocol ApplicationConfigManager {
|
||||||
/// Returns the ApplicationConfig for the specified application Id.
|
/// Returns the ApplicationConfig for the specified application Id.
|
||||||
GetConfig(string id) -> (ApplicationConfig config);
|
GetConfig(struct {
|
||||||
|
id string;
|
||||||
|
}) -> (resource struct {
|
||||||
|
config ApplicationConfig;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,23 +3,27 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol ApplicationContext {
|
protocol ApplicationContext {
|
||||||
/// Returns session_id to use in the AudioConsumer API.
|
/// Returns session_id to use in the AudioConsumer API.
|
||||||
GetMediaSessionId() -> (uint64 media_session_id);
|
GetMediaSessionId() -> (struct {
|
||||||
|
media_session_id uint64;
|
||||||
|
});
|
||||||
|
|
||||||
/// Used by the Agent to receive a controller from the Cast Runner.
|
/// Used by the Agent to receive a controller from the Cast Runner.
|
||||||
/// Can only be called at most one time for the lifetime of the Component.
|
/// Can only be called at most one time for the lifetime of the Component.
|
||||||
SetApplicationController(ApplicationController controller);
|
SetApplicationController(resource struct {
|
||||||
|
controller client_end:ApplicationController;
|
||||||
|
});
|
||||||
|
|
||||||
/// Called if the application component exits gracefully, with the same
|
/// Called if the application component exits gracefully, with the same
|
||||||
/// `exit_code` as would be reported via `ComponentController.OnTerminated()`.
|
/// `exit_code` as would be reported via `ComponentController.OnTerminated()`.
|
||||||
/// Values less than or equal to zero are `zx.status` codes.
|
/// Values less than or equal to zero are `zx.status` codes.
|
||||||
/// May be called at most once, immediately prior to termination.
|
/// May be called at most once, immediately prior to termination.
|
||||||
[Transitional]
|
@transitional
|
||||||
OnApplicationExit(int64 exit_code);
|
OnApplicationExit(struct {
|
||||||
|
exit_code int64;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
using fuchsia.media.sessions2;
|
using fuchsia.media.sessions2;
|
||||||
@ -12,17 +10,25 @@ using fuchsia.media.sessions2;
|
|||||||
/// Allows clients to access and modify certain aspects of the Cast receiver
|
/// Allows clients to access and modify certain aspects of the Cast receiver
|
||||||
/// application runtime.
|
/// application runtime.
|
||||||
protocol ApplicationController {
|
protocol ApplicationController {
|
||||||
/// Enables or disables touch event processing.
|
/// Enables or disables touch event processing.
|
||||||
SetTouchInputEnabled(bool enable);
|
SetTouchInputEnabled(struct {
|
||||||
|
enable bool;
|
||||||
|
});
|
||||||
|
|
||||||
/// Sets whether to block all HTMLMediaElements in the frame from fetching and
|
/// Sets whether to block all HTMLMediaElements in the frame from fetching and
|
||||||
/// loading media resources.
|
/// loading media resources.
|
||||||
/// See fuchsia.web.Frame for usage details.
|
/// See fuchsia.web.Frame for usage details.
|
||||||
SetBlockMediaLoading(bool blocked);
|
SetBlockMediaLoading(struct {
|
||||||
|
blocked bool;
|
||||||
|
});
|
||||||
|
|
||||||
/// Connects to the application's media control & observation API.
|
/// Connects to the application's media control & observation API.
|
||||||
GetMediaPlayer(request<fuchsia.media.sessions2.Player> request);
|
GetMediaPlayer(resource struct {
|
||||||
|
request server_end:fuchsia.media.sessions2.Player;
|
||||||
|
});
|
||||||
|
|
||||||
/// Gets the private memory footprint of the application's main frame.
|
/// Gets the private memory footprint of the application's main frame.
|
||||||
GetPrivateMemorySize() -> (uint64 size_bytes);
|
GetPrivateMemorySize() -> (struct {
|
||||||
|
size_bytes uint64;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
using fuchsia.web;
|
using fuchsia.web;
|
||||||
|
|
||||||
/// Provides a list of header names that should be exempted from CORS preflight
|
/// Provides a list of header names that should be exempted from CORS preflight
|
||||||
/// security checks for all Cast apps.
|
/// security checks for all Cast apps.
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol CorsExemptHeaderProvider {
|
protocol CorsExemptHeaderProvider {
|
||||||
GetCorsExemptHeaderNames() -> (vector<bytes:fuchsia.web.MAX_HEADERS_COUNT>:MAX header_names);
|
GetCorsExemptHeaderNames() -> (struct {
|
||||||
|
header_names vector<bytes:fuchsia.web.MAX_HEADERS_COUNT>:MAX;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,23 +3,23 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
// Used to request that persistent data for components hosted by the Runner is
|
// Used to request that persistent data for components hosted by the Runner is
|
||||||
// deleted.
|
// deleted.
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol DataReset {
|
protocol DataReset {
|
||||||
// Deletes all persistent data stored by the Runner.
|
// Deletes all persistent data stored by the Runner.
|
||||||
//
|
//
|
||||||
// Active components hosted by the Runner will be terminated
|
// Active components hosted by the Runner will be terminated
|
||||||
// before any data is removed.
|
// before any data is removed.
|
||||||
//
|
//
|
||||||
// Returns after deletion of persistent data completes or when an error
|
// Returns after deletion of persistent data completes or when an error
|
||||||
// occurs. The resulting |succeeded| is true if persistent data stored
|
// occurs. The resulting |succeeded| is true if persistent data stored
|
||||||
// on behalf of components apps was successfully deleted, and false if
|
// on behalf of components apps was successfully deleted, and false if
|
||||||
// the request could not be completed (for example, due to an I/O error).
|
// the request could not be completed (for example, due to an I/O error).
|
||||||
[Transitional]
|
@transitional
|
||||||
DeletePersistentData() -> (bool succeeded);
|
DeletePersistentData() -> (struct {
|
||||||
|
succeeded bool;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -3,18 +3,17 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
// TODO(crbug.com/1227712): Migrate syntax and remove this.
|
||||||
deprecated_syntax;
|
|
||||||
|
|
||||||
library chromium.cast;
|
library chromium.cast;
|
||||||
|
|
||||||
using fuchsia.web;
|
using fuchsia.web;
|
||||||
|
|
||||||
/// Provides URL request rewriting rules from the Agent.
|
/// Provides URL request rewriting rules from the Agent.
|
||||||
[Discoverable]
|
@discoverable
|
||||||
protocol UrlRequestRewriteRulesProvider {
|
protocol UrlRequestRewriteRulesProvider {
|
||||||
/// Returns a set of URL request rewriting rules. The first call must always
|
/// Returns a set of URL request rewriting rules. The first call must always
|
||||||
/// return immediately with a potentially empty set of rules. On subsequent
|
/// return immediately with a potentially empty set of rules. On subsequent
|
||||||
/// calls, the callback will only be invoked when the rules have changed.
|
/// calls, the callback will only be invoked when the rules have changed.
|
||||||
GetUrlRequestRewriteRules() ->
|
GetUrlRequestRewriteRules() -> (struct {
|
||||||
(vector<fuchsia.web.UrlRequestRewriteRule> rules);
|
rules vector<fuchsia.web.UrlRequestRewriteRule>;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user