Chromium Code Reviews| Index: mojo/services/ui/views/interfaces/view_provider.mojom |
| diff --git a/mojo/services/ui/views/interfaces/view_provider.mojom b/mojo/services/ui/views/interfaces/view_provider.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ca5c626c560beb18640d6f98534cdc0b9f61536c |
| --- /dev/null |
| +++ b/mojo/services/ui/views/interfaces/view_provider.mojom |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 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. |
| + |
| +[DartPackage="mojo_services"] |
| +module mojo.ui; |
| + |
| +import "mojo/public/interfaces/application/service_provider.mojom"; |
| +import "mojo/services/ui/views/interfaces/views.mojom"; |
| + |
| +// Provides a View upon request. |
| +// |
| +// Applications should implement and expose this service so that they can |
| +// expose views to be embedded into other applications. |
| +interface ViewProvider { |
| + // Creates and registers a view with the view manager and returns its |
| + // view token (as provided by |ViewManager.RegisterView()|). |
| + // |
| + // Having received the view token, the caller should attach the view to |
| + // a view tree and lay it out. |
| + // |
| + // The |view_token| must |
|
qsr
2015/10/27 10:51:25
This comment is incomplete
jeffbrown
2015/10/27 22:48:46
Whoops!
|
| + // |
| + // The caller may provide services to the view via the |services| |
| + // service provider. |
| + // |
| + // The caller may receive services from the view via the |exposed_services| |
| + // service provider. |
| + CreateView(mojo.ServiceProvider&? services, |
| + mojo.ServiceProvider? exposed_services) => |
| + (ViewToken view_token); |
| +}; |