Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: services/ui/display/screen_manager_forwarding.h

Issue 2916823002: Move Mus into chrome's process when running with --mus.
Patch Set: Addressing most feedback, making this work on device. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698