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

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

Issue 2692863009: Remove usage of ws::Display in ws::UserDisplayManager. (Closed)
Patch Set: Fix mash_browser_tests. Created 3 years, 10 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_OZONE_EXTERNAL_H_ 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_ 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
7 7
8 #include "services/ui/display/screen_manager.h" 8 #include "services/ui/display/screen_manager.h"
9 9
10 namespace display { 10 namespace display {
11 11
12 // In external window mode, the purpose of having a ScreenManager 12 // In external window mode, the purpose of having a ScreenManager
13 // does not apply: there is not a ScreenManagerDelegate manager 13 // does not apply: there is not a ScreenManagerDelegate manager
14 // responsible for creating Display instances. 14 // responsible for creating Display instances.
15 // Basically, in this mode WindowTreeHost creates the display instance. 15 // Basically, in this mode WindowTreeHost creates the display instance.
16 // 16 //
17 // ScreenManagerOzoneExternal provides the stub out implementation 17 // ScreenManagerOzoneExternal provides the stub out implementation
18 // of ScreenManager for Ozone non-chromeos platforms. 18 // of ScreenManager for Ozone non-chromeos platforms.
19 class ScreenManagerOzoneExternal : public ScreenManager { 19 class ScreenManagerOzoneExternal : public ScreenManager {
20 public: 20 public:
21 ScreenManagerOzoneExternal(); 21 ScreenManagerOzoneExternal();
22 ~ScreenManagerOzoneExternal() override; 22 ~ScreenManagerOzoneExternal() override;
23 23
24 private: 24 private:
25 // ScreenManager. 25 // ScreenManager.
26 void AddInterfaces(service_manager::InterfaceRegistry* registry) override; 26 void AddInterfaces(service_manager::InterfaceRegistry* registry) override;
27 void Init(ScreenManagerDelegate* delegate) override; 27 void Init(ScreenManagerDelegate* delegate) override;
28 int64_t GetPrimaryDisplayId() const override;
29 void RequestCloseDisplay(int64_t display_id) override; 28 void RequestCloseDisplay(int64_t display_id) override;
30 29
31 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzoneExternal); 30 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzoneExternal);
32 }; 31 };
33 32
34 } // namespace display 33 } // namespace display
35 34
36 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_ 35 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
OLDNEW
« no previous file with comments | « services/ui/display/screen_manager.h ('k') | services/ui/display/screen_manager_ozone_external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698