OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ | 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ |
6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ | 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class NativeDisplayDelegate; | 24 class NativeDisplayDelegate; |
25 | 25 |
26 // ScreenManager implementation that implements mojom::NativeDisplayDelegate. | 26 // ScreenManager implementation that implements mojom::NativeDisplayDelegate. |
27 // This will own a real NativeDisplayDelegate and forwards calls to and | 27 // This will own a real NativeDisplayDelegate and forwards calls to and |
28 // responses from it over Mojo. | 28 // responses from it over Mojo. |
29 class ScreenManagerForwarding : public ScreenManager, | 29 class ScreenManagerForwarding : public ScreenManager, |
30 public NativeDisplayObserver, | 30 public NativeDisplayObserver, |
31 public mojom::NativeDisplayDelegate { | 31 public mojom::NativeDisplayDelegate { |
32 public: | 32 public: |
33 ScreenManagerForwarding(); | 33 ScreenManagerForwarding(bool in_process); |
34 ~ScreenManagerForwarding() override; | 34 ~ScreenManagerForwarding() override; |
35 | 35 |
36 // ScreenManager: | 36 // ScreenManager: |
37 void AddInterfaces(service_manager::BinderRegistry* registry) override; | 37 void AddInterfaces(service_manager::BinderRegistry* registry) override; |
38 void Init(ScreenManagerDelegate* delegate) override; | 38 void Init(ScreenManagerDelegate* delegate) override; |
39 void RequestCloseDisplay(int64_t display_id) override; | 39 void RequestCloseDisplay(int64_t display_id) override; |
40 display::ScreenBase* GetScreen() override; | 40 display::ScreenBase* GetScreen() override; |
41 | 41 |
42 // NativeDisplayObserver: | 42 // NativeDisplayObserver: |
43 void OnConfigurationChanged() override; | 43 void OnConfigurationChanged() override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Cached pointers to snapshots owned by the |native_display_delegate_|. | 91 // Cached pointers to snapshots owned by the |native_display_delegate_|. |
92 std::unordered_map<int64_t, DisplaySnapshot*> snapshot_map_; | 92 std::unordered_map<int64_t, DisplaySnapshot*> snapshot_map_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ScreenManagerForwarding); | 94 DISALLOW_COPY_AND_ASSIGN(ScreenManagerForwarding); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace display | 97 } // namespace display |
98 | 98 |
99 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ | 99 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_FORWARDING_H_ |
OLD | NEW |