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_MANAGER_CONNECTION_H_ | 5 #ifndef UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ |
6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ | 6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "services/shell/public/cpp/identity.h" | 17 #include "services/shell/public/cpp/identity.h" |
18 #include "services/ui/public/cpp/window_tree_client_delegate.h" | 18 #include "services/ui/public/cpp/window_tree_client_delegate.h" |
19 #include "ui/views/mus/mus_export.h" | 19 #include "ui/views/mus/mus_export.h" |
20 #include "ui/views/mus/screen_mus_delegate.h" | 20 #include "ui/views/mus/screen_mus_delegate.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 namespace shell { | 23 namespace shell { |
24 class Connector; | 24 class Connector; |
25 } | 25 } |
26 | 26 |
27 namespace ui { | |
28 class GpuService; | |
29 } | |
30 | |
31 namespace views { | 27 namespace views { |
32 class ClipboardMus; | 28 class ClipboardMus; |
33 class NativeWidget; | 29 class NativeWidget; |
34 class PointerWatcher; | 30 class PointerWatcher; |
35 class TouchEventWatcher; | 31 class TouchEventWatcher; |
36 class ScreenMus; | 32 class ScreenMus; |
37 namespace internal { | 33 namespace internal { |
38 class NativeWidgetDelegate; | 34 class NativeWidgetDelegate; |
39 } | 35 } |
40 | 36 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void OnEventObserved(const ui::Event& event, ui::Window* target) override; | 89 void OnEventObserved(const ui::Event& event, ui::Window* target) override; |
94 | 90 |
95 // ScreenMusDelegate: | 91 // ScreenMusDelegate: |
96 void OnWindowManagerFrameValuesChanged() override; | 92 void OnWindowManagerFrameValuesChanged() override; |
97 gfx::Point GetCursorScreenPoint() override; | 93 gfx::Point GetCursorScreenPoint() override; |
98 | 94 |
99 shell::Connector* connector_; | 95 shell::Connector* connector_; |
100 shell::Identity identity_; | 96 shell::Identity identity_; |
101 std::unique_ptr<ScreenMus> screen_; | 97 std::unique_ptr<ScreenMus> screen_; |
102 std::unique_ptr<ui::WindowTreeClient> client_; | 98 std::unique_ptr<ui::WindowTreeClient> client_; |
103 std::unique_ptr<ui::GpuService> gpu_service_; | |
104 // Must be empty on destruction. | 99 // Must be empty on destruction. |
105 base::ObserverList<PointerWatcher, true> pointer_watchers_; | 100 base::ObserverList<PointerWatcher, true> pointer_watchers_; |
106 base::ObserverList<TouchEventWatcher, true> touch_event_watchers_; | 101 base::ObserverList<TouchEventWatcher, true> touch_event_watchers_; |
107 | 102 |
108 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); | 103 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); |
109 }; | 104 }; |
110 | 105 |
111 } // namespace views | 106 } // namespace views |
112 | 107 |
113 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ | 108 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ |
OLD | NEW |