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 "ui/aura/window_tree_host_platform.h" | 9 #include "ui/aura/window_tree_host_platform.h" |
10 #include "ui/views/mus/mus_export.h" | 10 #include "ui/views/mus/mus_export.h" |
11 | 11 |
12 class SkBitmap; | 12 class SkBitmap; |
13 | 13 |
| 14 namespace bitmap_uploader { |
| 15 class BitmapUploader; |
| 16 } |
| 17 |
14 namespace mus { | 18 namespace mus { |
15 class Window; | 19 class Window; |
16 } | 20 } |
17 | 21 |
18 namespace shell { | 22 namespace shell { |
19 class Connector; | 23 class Connector; |
20 } | 24 } |
21 | 25 |
| 26 namespace ui { |
| 27 class ViewProp; |
| 28 } |
| 29 |
22 namespace views { | 30 namespace views { |
23 | 31 |
24 class InputMethodMUS; | 32 class InputMethodMUS; |
25 class NativeWidgetMus; | 33 class NativeWidgetMus; |
26 class PlatformWindowMus; | 34 class PlatformWindowMus; |
27 | 35 |
28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { | 36 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { |
29 public: | 37 public: |
30 WindowTreeHostMus(shell::Connector* connector, | 38 WindowTreeHostMus(shell::Connector* connector, |
31 NativeWidgetMus* native_widget, | 39 NativeWidgetMus* native_widget, |
32 mus::Window* window); | 40 mus::Window* window); |
33 ~WindowTreeHostMus() override; | 41 ~WindowTreeHostMus() override; |
34 | 42 |
35 PlatformWindowMus* platform_window(); | |
36 | |
37 private: | 43 private: |
38 // aura::WindowTreeHostPlatform: | 44 // aura::WindowTreeHostPlatform: |
39 void DispatchEvent(ui::Event* event) override; | 45 void DispatchEvent(ui::Event* event) override; |
40 void OnClosed() override; | 46 void OnClosed() override; |
41 void OnActivationChanged(bool active) override; | 47 void OnActivationChanged(bool active) override; |
42 void OnCloseRequest() override; | 48 void OnCloseRequest() override; |
43 | 49 |
44 NativeWidgetMus* native_widget_; | 50 NativeWidgetMus* native_widget_; |
45 std::unique_ptr<InputMethodMUS> input_method_; | 51 std::unique_ptr<InputMethodMUS> input_method_; |
46 | 52 |
| 53 // Bitmap management. |
| 54 std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_; |
| 55 std::unique_ptr<ui::ViewProp> prop_; |
| 56 |
47 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 57 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
48 }; | 58 }; |
49 | 59 |
50 } // namespace views | 60 } // namespace views |
51 | 61 |
52 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | 62 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ |
OLD | NEW |