OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AURA_WINDOW_TREE_HOST_MOJO_H_ | 5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ | 6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" | 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
11 #include "ui/events/event_source.h" | 11 #include "ui/events/event_source.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 class ContextFactory; | 15 class ContextFactory; |
16 } | 16 } |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace view_manager { | |
20 namespace service { | 19 namespace service { |
21 | 20 |
22 class ContextFactoryImpl; | 21 class ContextFactoryImpl; |
23 | 22 |
24 class WindowTreeHostImpl : public aura::WindowTreeHost, | 23 class WindowTreeHostImpl : public aura::WindowTreeHost, |
25 public ui::EventSource, | 24 public ui::EventSource, |
26 public NativeViewportClient { | 25 public NativeViewportClient { |
27 public: | 26 public: |
28 WindowTreeHostImpl( | 27 WindowTreeHostImpl( |
29 NativeViewportPtr viewport, | 28 NativeViewportPtr viewport, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 NativeViewportPtr native_viewport_; | 64 NativeViewportPtr native_viewport_; |
66 Callback<void()> compositor_created_callback_; | 65 Callback<void()> compositor_created_callback_; |
67 Callback<void()> native_viewport_closed_callback_; | 66 Callback<void()> native_viewport_closed_callback_; |
68 | 67 |
69 gfx::Rect bounds_; | 68 gfx::Rect bounds_; |
70 | 69 |
71 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); | 70 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); |
72 }; | 71 }; |
73 | 72 |
74 } // namespace service | 73 } // namespace service |
75 } // namespace view_manager | |
76 } // namespace mojo | 74 } // namespace mojo |
77 | 75 |
78 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ | 76 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |