OLD | NEW |
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 UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ |
6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | 6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/mus/public/cpp/window_observer.h" | 9 #include "components/mus/public/cpp/window_observer.h" |
10 #include "components/mus/public/interfaces/window_manager.mojom.h" | 10 #include "components/mus/public/interfaces/window_manager.mojom.h" |
11 #include "ui/aura/window_tree_host.h" | 11 #include "ui/aura/window_tree_host.h" |
12 #include "ui/events/event_source.h" | 12 #include "ui/events/event_source.h" |
13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
14 | 14 |
15 class SkBitmap; | 15 class SkBitmap; |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 class Shell; | 18 class Shell; |
19 } | 19 } |
20 | 20 |
21 namespace ui { | 21 namespace ui { |
22 class Compositor; | 22 class Compositor; |
23 } | 23 } |
24 | 24 |
25 namespace views { | 25 namespace views { |
26 | 26 |
27 class InputMethodMUS; | 27 class InputMethodMUS; |
28 class SurfaceContextFactory; | 28 class SurfaceContextFactory; |
29 | 29 |
30 class WindowTreeHostMojo : public aura::WindowTreeHost, | 30 class WindowTreeHostMus : public aura::WindowTreeHost, |
31 public mus::WindowObserver { | 31 public mus::WindowObserver { |
32 public: | 32 public: |
33 WindowTreeHostMojo(mojo::Shell* shell, mus::Window* window); | 33 WindowTreeHostMus(mojo::Shell* shell, mus::Window* window); |
34 ~WindowTreeHostMojo() override; | 34 ~WindowTreeHostMus() override; |
35 | 35 |
36 mus::Window* mus_window() { return mus_window_; } | 36 mus::Window* mus_window() { return mus_window_; } |
37 | 37 |
38 mus::mojom::ShowState show_state() const { return show_state_; } | 38 mus::mojom::ShowState show_state() const { return show_state_; } |
39 void SetShowState(mus::mojom::ShowState show_state); | 39 void SetShowState(mus::mojom::ShowState show_state); |
40 | 40 |
41 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { | 41 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { |
42 return ui::EventSource::SendEventToProcessor(event); | 42 return ui::EventSource::SendEventToProcessor(event); |
43 } | 43 } |
44 | 44 |
(...skipping 27 matching lines...) Expand all Loading... |
72 const std::vector<uint8_t>* new_data) override; | 72 const std::vector<uint8_t>* new_data) override; |
73 | 73 |
74 mus::Window* mus_window_; | 74 mus::Window* mus_window_; |
75 | 75 |
76 mus::mojom::ShowState show_state_; | 76 mus::mojom::ShowState show_state_; |
77 | 77 |
78 scoped_ptr<InputMethodMUS> input_method_; | 78 scoped_ptr<InputMethodMUS> input_method_; |
79 | 79 |
80 scoped_ptr<SurfaceContextFactory> context_factory_; | 80 scoped_ptr<SurfaceContextFactory> context_factory_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 82 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace views | 85 } // namespace views |
86 | 86 |
87 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | 87 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ |
OLD | NEW |