OLD | NEW |
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 MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 11 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
12 #include "mojo/services/view_manager/ids.h" | 12 #include "mojo/services/view_manager/ids.h" |
13 #include "mojo/services/view_manager/view_manager_export.h" | 13 #include "mojo/services/view_manager/view_manager_export.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/aura/window_delegate.h" | 15 #include "ui/aura/window_delegate.h" |
16 #include "ui/aura/window_observer.h" | 16 #include "ui/aura/window_observer.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace view_manager { | |
20 namespace service { | 19 namespace service { |
21 | 20 |
22 class NodeDelegate; | 21 class NodeDelegate; |
23 class View; | 22 class View; |
24 | 23 |
25 // Represents a node in the graph. Delegate is informed of interesting events. | 24 // Represents a node in the graph. Delegate is informed of interesting events. |
26 class MOJO_VIEW_MANAGER_EXPORT Node | 25 class MOJO_VIEW_MANAGER_EXPORT Node |
27 : public aura::WindowObserver, | 26 : public aura::WindowObserver, |
28 public aura::WindowDelegate { | 27 public aura::WindowDelegate { |
29 public: | 28 public: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 View* view_; | 105 View* view_; |
107 | 106 |
108 ViewId view_id_; | 107 ViewId view_id_; |
109 | 108 |
110 aura::Window window_; | 109 aura::Window window_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(Node); | 111 DISALLOW_COPY_AND_ASSIGN(Node); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace service | 114 } // namespace service |
116 } // namespace view_manager | |
117 } // namespace mojo | 115 } // namespace mojo |
118 | 116 |
119 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 117 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
OLD | NEW |