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

Side by Side Diff: components/mus/ws/view_tree_host_delegate.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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
« no previous file with comments | « components/mus/ws/view_tree_host_connection.cc ('k') | components/mus/ws/view_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_ 6 #define COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_
7 7
8 namespace mus { 8 namespace mus {
9 9
10 class ViewTreeImpl; 10 class ViewTreeImpl;
11 11
12 // A ViewTreeHostDelegate interface is implemented by an object that 12 // A ViewTreeHostDelegate interface is implemented by an object that
13 // has the ViewTreeImpl that is associated with the ViewTreeHostImpl that holds 13 // has the WindowTreeImpl that is associated with the ViewTreeHostImpl that
14 // holds
14 // a pointer to this object. Typically, a ViewTreeHostDelegate will also manage 15 // a pointer to this object. Typically, a ViewTreeHostDelegate will also manage
15 // the lifetime of the ViewTreeHostImpl and will delete the object when it gets 16 // the lifetime of the ViewTreeHostImpl and will delete the object when it gets
16 // informed of when the Display of the root is closed. 17 // informed of when the Display of the root is closed.
17 class ViewTreeHostDelegate { 18 class ViewTreeHostDelegate {
18 public: 19 public:
19 // Called when the window associated with the root is completely initialized 20 // Called when the window associated with the root is completely initialized
20 // (i.e. the ViewportMetrics for the display is known). 21 // (i.e. the ViewportMetrics for the display is known).
21 virtual void OnDisplayInitialized() = 0; 22 virtual void OnDisplayInitialized() = 0;
22 23
23 // Called when the window associated with the root is closed. 24 // Called when the window associated with the root is closed.
24 virtual void OnDisplayClosed() = 0; 25 virtual void OnDisplayClosed() = 0;
25 26
26 // Returns the ViewTreeImpl associated with the delegate. 27 // Returns the WindowTreeImpl associated with the delegate.
27 virtual ViewTreeImpl* GetViewTree() = 0; 28 virtual ViewTreeImpl* GetWindowTree() = 0;
28 29
29 protected: 30 protected:
30 virtual ~ViewTreeHostDelegate() {} 31 virtual ~ViewTreeHostDelegate() {}
31 }; 32 };
32 33
33 } // namespace mus 34 } // namespace mus
34 35
35 #endif // COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_ 36 #endif // COMPONENTS_MUS_WS_VIEW_TREE_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/view_tree_host_connection.cc ('k') | components/mus/ws/view_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698