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

Side by Side Diff: components/mus/public/cpp/view_tree_delegate.h

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/mus/public/interfaces/view_tree.mojom.h" 10 #include "components/mus/public/interfaces/view_tree.mojom.h"
11 #include "mojo/application/public/interfaces/service_provider.mojom.h" 11 #include "mojo/application/public/interfaces/service_provider.mojom.h"
12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
13 13
14 namespace mus { 14 namespace mojo {
15 15
16 class View; 16 class View;
17 class ViewTreeConnection; 17 class ViewTreeConnection;
18 18
19 // Interface implemented by an application using the view manager. 19 // Interface implemented by an application using the view manager.
20 // 20 //
21 // Each call to OnEmbed() results in a new ViewTreeConnection and new root View. 21 // Each call to OnEmbed() results in a new ViewTreeConnection and new root View.
22 // ViewTreeConnection is deleted by any of the following: 22 // ViewTreeConnection is deleted by any of the following:
23 // . If the root of the connection is destroyed. This happens if the owner 23 // . If the root of the connection is destroyed. This happens if the owner
24 // of the root Embed()s another app in root, or the owner explicitly deletes 24 // of the root Embed()s another app in root, or the owner explicitly deletes
(...skipping 26 matching lines...) Expand all
51 virtual void OnUnembed(); 51 virtual void OnUnembed();
52 52
53 // Called from the destructor of ViewTreeConnection after all the Views have 53 // Called from the destructor of ViewTreeConnection after all the Views have
54 // been destroyed. |connection| is no longer valid after this call. 54 // been destroyed. |connection| is no longer valid after this call.
55 virtual void OnConnectionLost(ViewTreeConnection* connection) = 0; 55 virtual void OnConnectionLost(ViewTreeConnection* connection) = 0;
56 56
57 protected: 57 protected:
58 virtual ~ViewTreeDelegate() {} 58 virtual ~ViewTreeDelegate() {}
59 }; 59 };
60 60
61 } // namespace mus 61 } // namespace mojo
62 62
63 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_ 63 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/view_tree_connection.h ('k') | components/mus/public/cpp/view_tree_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698