Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: mojo/public/interfaces/bindings/service_describer.mojom

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.mojo.bindings"] 5 [DartPackage="mojo", JavaPackage="org.chromium.mojo"]
6 // TODO(rudominer) Move this file into the module mojo.bindings when 6 // TODO(rudominer) Move this file into the module mojo.bindings when
7 // https://github.com/domokit/mojo/issues/435 is fixed. 7 // https://github.com/domokit/mojo/issues/435 is fixed.
8 module mojo.bindings.types; 8 module mojo;
9 9
10 import "mojom_types.mojom"; 10 import "mojom_types.mojom";
11 11
12 // The name by which a client requests the ServiceDescriber service from 12 // The name by which a client requests the ServiceDescriber service from
13 // a host. 13 // a host.
14 const string SERVICE_DESCRIBER_INTERFACE_NAME = "_ServiceDescriber"; 14 const string SERVICE_DESCRIBER_INTERFACE_NAME = "_ServiceDescriber";
15 15
16 // This is a companion interface to ServiceProvider. An implementation of 16 // This is a companion interface to ServiceProvider. An implementation of
17 // ServiceProvider may optionally offer descriptions of the services it 17 // ServiceProvider may optionally offer descriptions of the services it
18 // provides by making this interface available. A client obtains access 18 // provides by making this interface available. A client obtains access
(...skipping 24 matching lines...) Expand all
43 // 43 //
44 // An implementation of ServiceDescription contains information about all 44 // An implementation of ServiceDescription contains information about all
45 // of the types in the complete type set of the service. 45 // of the types in the complete type set of the service.
46 interface ServiceDescription { 46 interface ServiceDescription {
47 // Returns a MojomInterface for the top-level interface of this service. 47 // Returns a MojomInterface for the top-level interface of this service.
48 GetTopLevelInterface() => (MojomInterface mojomInterface); 48 GetTopLevelInterface() => (MojomInterface mojomInterface);
49 49
50 // Returns the |UserDefinedType| for the given |type_key|. Valid keys are 50 // Returns the |UserDefinedType| for the given |type_key|. Valid keys are
51 // those that are embedded in the structures returned from earlier queries 51 // those that are embedded in the structures returned from earlier queries
52 // of this ServiceDescription. If the key is invalid then |type| will be null. 52 // of this ServiceDescription. If the key is invalid then |type| will be null.
53 GetTypeDefinition(string type_key) => 53 GetTypeDefinition(string type_key) => (UserDefinedType? type);
54 (mojo.bindings.types.UserDefinedType? type);
55 54
56 // Returns all the data queryable via GetTypeDefinition in a single 55 // Returns all the data queryable via GetTypeDefinition in a single
57 // structure, or null if the implementation is not willing or not able to 56 // structure, or null if the implementation is not willing or not able to
58 // provide all of the data at once. 57 // provide all of the data at once.
59 GetAllTypeDefinitions() => (map<string, UserDefinedType>? definitions); 58 GetAllTypeDefinitions() => (map<string, UserDefinedType>? definitions);
60 }; 59 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698