Commit 7f93585b authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

[Fuchsia] Remove ordinals from FIDL files.

Ordinals have been deprecated. This also fixes some minor indentation
issues in FIDL files.

Change-Id: I687b2d35e11b56401771ce9aeea8465735d7ffb9
Reviewed-on: https://chromium-review.googlesource.com/c/1372659
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615733}
parent 000208cc
...@@ -6,5 +6,5 @@ library base.fuchsia.testfidl; ...@@ -6,5 +6,5 @@ library base.fuchsia.testfidl;
[Discoverable] [Discoverable]
interface TestInterface { interface TestInterface {
1: Add(int32 a, int32 b) -> (int32 sum); Add(int32 a, int32 b) -> (int32 sum);
}; };
...@@ -101,42 +101,42 @@ struct AfterPreviousReference { ...@@ -101,42 +101,42 @@ struct AfterPreviousReference {
}; };
interface AnotherInterface { interface AnotherInterface {
1: TimesTwo(int32 a) -> (int32 b); TimesTwo(int32 a) -> (int32 b);
}; };
interface Testola { interface Testola {
1: DoSomething(); DoSomething();
2: PrintInt(int32 num); PrintInt(int32 num);
3: PrintMsg(string msg); PrintMsg(string msg);
4: VariousArgs(Blorp blorp, string:32 msg, vector<uint32> stuff); VariousArgs(Blorp blorp, string:32 msg, vector<uint32> stuff);
5: WithResponse(int32 a, int32 b) -> (int32 sum); WithResponse(int32 a, int32 b) -> (int32 sum);
6: SendAStruct(BasicStruct basic); SendAStruct(BasicStruct basic);
7: NestedStructsWithResponse(BasicStruct basic) -> (StuffAndThings resp); NestedStructsWithResponse(BasicStruct basic) -> (StuffAndThings resp);
8: PassHandles(handle<job> job) -> (handle<debuglog> debuglog); PassHandles(handle<job> job) -> (handle<debuglog> debuglog);
9: ReceiveUnions(StructOfMultipleUnions somu); ReceiveUnions(StructOfMultipleUnions somu);
10: SendUnions() -> (StructOfMultipleUnions somu); SendUnions() -> (StructOfMultipleUnions somu);
11: SendVectorsOfString(vector<string> unsized, SendVectorsOfString(vector<string> unsized,
vector<string?> nullable, vector<string?> nullable,
vector<string:10> max_strlen); vector<string:10> max_strlen);
12: VectorOfStruct(vector<StructWithUint> stuff) VectorOfStruct(vector<StructWithUint> stuff)
-> (vector<StructWithUint> result); -> (vector<StructWithUint> result);
13: PassVectorOfPrimitives(VectorsOfPrimitives input) PassVectorOfPrimitives(VectorsOfPrimitives input)
-> (VectorsOfPrimitives output); -> (VectorsOfPrimitives output);
14: PassVectorOfVMO(VectorOfHandleToVMO input) PassVectorOfVMO(VectorOfHandleToVMO input)
-> (VectorOfHandleToVMO output); -> (VectorOfHandleToVMO output);
15: GetAnother(request<AnotherInterface> another); GetAnother(request<AnotherInterface> another);
}; };
...@@ -7,8 +7,8 @@ library chromium.web; ...@@ -7,8 +7,8 @@ library chromium.web;
// Manages browsing state (e.g. LocalStorage, cookies, etc) associated with // Manages browsing state (e.g. LocalStorage, cookies, etc) associated with
// a set of Frames. // a set of Frames.
interface Context { interface Context {
// Creates a new frame under this Context. // Creates a new frame under this Context.
// //
// |frame|: An interface request that will be bound to the created Frame. // |frame|: An interface request that will be bound to the created Frame.
1: CreateFrame(request<Frame> frame); CreateFrame(request<Frame> frame);
}; };
...@@ -8,12 +8,12 @@ library chromium.web; ...@@ -8,12 +8,12 @@ library chromium.web;
// Context resources. // Context resources.
[Discoverable] [Discoverable]
interface ContextProvider { interface ContextProvider {
// Creates a new browser Context whose state is wholly independent and // Creates a new browser Context whose state is wholly independent and
// isolated from other Contexts. // isolated from other Contexts.
// //
// context: An interface request which will receive a bound Context // context: An interface request which will receive a bound Context
// service. // service.
1: Create(CreateContextParams params, request<Context> context); Create(CreateContextParams params, request<Context> context);
}; };
struct CreateContextParams { struct CreateContextParams {
......
...@@ -27,14 +27,14 @@ interface Frame { ...@@ -27,14 +27,14 @@ interface Frame {
// the view tree. // the view tree.
// //
// |view_token|: Token for the new view. // |view_token|: Token for the new view.
4: CreateView2(handle<eventpair> view_token, CreateView2(handle<eventpair> view_token,
request<fuchsia.sys.ServiceProvider>? incoming_services, request<fuchsia.sys.ServiceProvider>? incoming_services,
fuchsia.sys.ServiceProvider? outgoing_services); fuchsia.sys.ServiceProvider? outgoing_services);
// Deprecated. // Deprecated.
// TODO(crbug.com/899348): Update all code to use CreateView2() // TODO(crbug.com/899348): Update all code to use CreateView2()
// and remove CreateView(). // and remove CreateView().
1: CreateView(request<fuchsia.ui.viewsv1token.ViewOwner> view_owner, CreateView(request<fuchsia.ui.viewsv1token.ViewOwner> view_owner,
request<fuchsia.sys.ServiceProvider>? services); request<fuchsia.sys.ServiceProvider>? services);
// Returns an interface through which the frame may be navigated to // Returns an interface through which the frame may be navigated to
...@@ -42,7 +42,7 @@ interface Frame { ...@@ -42,7 +42,7 @@ interface Frame {
// //
// |view_provider|: An interface request for the Frame's // |view_provider|: An interface request for the Frame's
// NavigationController. // NavigationController.
2: GetNavigationController(request<NavigationController> controller); GetNavigationController(request<NavigationController> controller);
// Executes |script| in the frame if the frame's URL has an origin which // Executes |script| in the frame if the frame's URL has an origin which
// matches entries in |origins|. // matches entries in |origins|.
...@@ -65,7 +65,7 @@ interface Frame { ...@@ -65,7 +65,7 @@ interface Frame {
// Returns |true| if the script was executed, |false| if the script was // Returns |true| if the script was executed, |false| if the script was
// rejected due to injection being blocked by the parent Context, or because // rejected due to injection being blocked by the parent Context, or because
// the script's text encoding was invalid. // the script's text encoding was invalid.
3: ExecuteJavaScript( ExecuteJavaScript(
vector<string> origins, fuchsia.mem.Buffer script, ExecuteMode mode) -> vector<string> origins, fuchsia.mem.Buffer script, ExecuteMode mode) ->
(bool success); (bool success);
...@@ -78,18 +78,18 @@ interface Frame { ...@@ -78,18 +78,18 @@ interface Frame {
// for more details on how the target origin policy is applied. // for more details on how the target origin policy is applied.
// //
// Returns |false| if |message| is invalid or |targetOrigin| is missing. // Returns |false| if |message| is invalid or |targetOrigin| is missing.
5: PostMessage(WebMessage message, string targetOrigin) -> (bool success); PostMessage(WebMessage message, string targetOrigin) -> (bool success);
// Sets the observer for handling page navigation events. // Sets the observer for handling page navigation events.
// //
// |observer|: The observer to use. Unregisters any existing observers // |observer|: The observer to use. Unregisters any existing observers
// if null. // if null.
100: SetNavigationEventObserver(NavigationEventObserver? observer); SetNavigationEventObserver(NavigationEventObserver? observer);
// If set to a value other than NONE, allows web content to log messages // If set to a value other than NONE, allows web content to log messages
// to the system logger using console.log(), console.info(), console.warn(), // to the system logger using console.log(), console.info(), console.warn(),
// and console.error(). // and console.error().
101: SetJavaScriptLogLevel(LogLevel level); SetJavaScriptLogLevel(LogLevel level);
}; };
struct WebMessage { struct WebMessage {
...@@ -118,13 +118,13 @@ union IncomingTransferable { ...@@ -118,13 +118,13 @@ union IncomingTransferable {
// is torn down. // is torn down.
interface MessagePort { interface MessagePort {
// Sends a WebMessage to the peer. // Sends a WebMessage to the peer.
1: PostMessage(WebMessage message) -> (bool success); PostMessage(WebMessage message) -> (bool success);
// Asynchronously reads the next message from the channel. // Asynchronously reads the next message from the channel.
// The client should invoke the callback when it is ready to process // The client should invoke the callback when it is ready to process
// another message. // another message.
// Unreceived messages are buffered on the sender's side and bounded // Unreceived messages are buffered on the sender's side and bounded
// by its available resources. // by its available resources.
2: ReceiveMessage() -> (WebMessage message); ReceiveMessage() -> (WebMessage message);
}; };
...@@ -12,16 +12,16 @@ interface NavigationController { ...@@ -12,16 +12,16 @@ interface NavigationController {
// |url|: The address to navigate to. // |url|: The address to navigate to.
// |params|: Additional parameters that affect how the resource will be // |params|: Additional parameters that affect how the resource will be
// loaded (e.g. cookies, HTTP headers, etc.) // loaded (e.g. cookies, HTTP headers, etc.)
1: LoadUrl(string url, LoadUrlParams? params); LoadUrl(string url, LoadUrlParams? params);
50: GoBack(); GoBack();
51: GoForward(); GoForward();
52: Stop(); Stop();
53: Reload(ReloadType type); Reload(ReloadType type);
// Returns information for the currently visible content regardless of // Returns information for the currently visible content regardless of
// loading state, or a null entry if no content is being displayed. // loading state, or a null entry if no content is being displayed.
100: GetVisibleEntry() -> (NavigationEntry? entry); GetVisibleEntry() -> (NavigationEntry? entry);
}; };
// Additional parameters for modifying the behavior of LoadUrl(). // Additional parameters for modifying the behavior of LoadUrl().
......
...@@ -20,6 +20,6 @@ interface NavigationEventObserver { ...@@ -20,6 +20,6 @@ interface NavigationEventObserver {
// creation or the last acknowledgement callback, whichever occurred later. // creation or the last acknowledgement callback, whichever occurred later.
// |change| will contain all the differences in navigation state since the // |change| will contain all the differences in navigation state since the
// last acknowledgement. // last acknowledgement.
1: OnNavigationStateChanged(NavigationEvent change) -> (); OnNavigationStateChanged(NavigationEvent change) -> ();
}; };
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