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_PLATFORM_WINDOW_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "components/mus/public/cpp/input_event_handler.h" | 14 #include "components/mus/public/cpp/input_event_handler.h" |
15 #include "components/mus/public/cpp/window_observer.h" | 15 #include "components/mus/public/cpp/window_observer.h" |
16 #include "ui/platform_window/platform_window.h" | 16 #include "ui/platform_window/platform_window.h" |
17 #include "ui/views/mus/mus_export.h" | 17 #include "ui/views/mus/mus_export.h" |
18 | 18 |
19 namespace bitmap_uploader { | 19 namespace bitmap_uploader { |
20 class BitmapUploader; | 20 class BitmapUploader; |
21 } | 21 } |
22 | 22 |
23 namespace mojo { | 23 namespace mojo { |
| 24 namespace shell { |
| 25 namespace mojom { |
24 class Shell; | 26 class Shell; |
25 } | 27 } |
| 28 } |
| 29 } |
26 | 30 |
27 namespace ui { | 31 namespace ui { |
28 class ViewProp; | 32 class ViewProp; |
29 } | 33 } |
30 | 34 |
31 namespace views { | 35 namespace views { |
32 | 36 |
33 class VIEWS_MUS_EXPORT PlatformWindowMus | 37 class VIEWS_MUS_EXPORT PlatformWindowMus |
34 : public NON_EXPORTED_BASE(ui::PlatformWindow), | 38 : public NON_EXPORTED_BASE(ui::PlatformWindow), |
35 public mus::WindowObserver, | 39 public mus::WindowObserver, |
36 public NON_EXPORTED_BASE(mus::InputEventHandler) { | 40 public NON_EXPORTED_BASE(mus::InputEventHandler) { |
37 public: | 41 public: |
38 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, | 42 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, |
39 mojo::Shell* shell, | 43 mojo::shell::mojom::Shell* shell, |
40 mus::Window* mus_window); | 44 mus::Window* mus_window); |
41 ~PlatformWindowMus() override; | 45 ~PlatformWindowMus() override; |
42 | 46 |
43 void Activate(); | 47 void Activate(); |
44 | 48 |
45 void SetCursorById(mus::mojom::Cursor cursor); | 49 void SetCursorById(mus::mojom::Cursor cursor); |
46 | 50 |
47 // ui::PlatformWindow: | 51 // ui::PlatformWindow: |
48 void Show() override; | 52 void Show() override; |
49 void Hide() override; | 53 void Hide() override; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #ifndef NDEBUG | 104 #ifndef NDEBUG |
101 scoped_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; | 105 scoped_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; |
102 #endif | 106 #endif |
103 | 107 |
104 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); | 108 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); |
105 }; | 109 }; |
106 | 110 |
107 } // namespace views | 111 } // namespace views |
108 | 112 |
109 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 113 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
OLD | NEW |