Chromium Code Reviews| Index: mojo/services/ui/views/interfaces/view_manager.mojom | 
| diff --git a/mojo/services/ui/views/interfaces/view_manager.mojom b/mojo/services/ui/views/interfaces/view_manager.mojom | 
| index 6592ea9119d0c4de1cece5eb2a507535f9bced46..d97d3ba24164e99ded7e2b868117f4eed6026577 100644 | 
| --- a/mojo/services/ui/views/interfaces/view_manager.mojom | 
| +++ b/mojo/services/ui/views/interfaces/view_manager.mojom | 
| @@ -67,4 +67,22 @@ interface ViewManager { | 
| CreateViewTree(mojo.ui.ViewTree& view_tree, | 
| mojo.ui.ViewTreeListener view_tree_listener, | 
| string? label); | 
| + | 
| + // Registers a view associate with the view manager. | 
| + // | 
| + // The services provided by |view_associate| will be made available to views. | 
| + // TODO(mikejurka): This method should only be made accessible to trusted | 
| + // services, once we have a security story | 
| + RegisterViewAssociate(mojo.ui.ViewAssociate view_associate, string? label); | 
| + | 
| + // Registers a ViewAssociateWatcher with the view manager. We use this to | 
| + // notify methods when a view associate's connection has closed. | 
| + RegisterViewAssociateWatcher(mojo.ui.ViewAssociateWatcher view_associate_watcher); | 
| +}; | 
| + | 
| +// Used to monitor whether a ViewAssociate's connection has closed. | 
| +interface ViewAssociateWatcher { | 
| + // Called when a ViewAssociate's connection has an error. |label| is the | 
| + // that was passing in when the ViewAssociate was registered using RegisterViewAssociate | 
| + OnViewAssociateConnectionError(string? label) => (); | 
| 
 
jeffbrown
2016/05/17 00:44:49
Returning the label is useful for diagnostics but
 
 | 
| }; |