Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_ | |
| 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_ | |
| 7 | |
| 8 #include "base/memory/weak_ptr.h" | |
| 9 #include "services/ui/display/screen_manager.h" | |
| 10 | |
| 11 namespace display { | |
| 12 | |
| 13 // In external window mode, the purpose of having a ScreenManager | |
| 14 // does not apply: there is not a ScreenManagerDelegate manager | |
| 15 // responsible for creating Dislpay instances. | |
| 16 // Basically, in this mode WindowTreeHost creates the display instance. | |
| 17 // | |
| 18 // ScreenManagerOzoneExternal provides the stub out implementation | |
| 19 // of ScreenManager for Ozone non-chromeos platforms. | |
| 20 class ScreenManagerOzoneExternal : public ScreenManager { | |
| 21 public: | |
| 22 ScreenManagerOzoneExternal(); | |
| 23 ~ScreenManagerOzoneExternal() override; | |
| 24 | |
| 25 private: | |
| 26 // ScreenManager. | |
| 27 void AddInterfaces(service_manager::InterfaceRegistry* registry) override; | |
| 28 void Init(ScreenManagerDelegate* delegate) override; | |
| 29 int64_t GetPrimaryDisplayId() const override; | |
| 30 void RequestCloseDisplay(int64_t display_id) override; | |
| 31 | |
| 32 base::WeakPtrFactory<ScreenManagerOzoneExternal> weak_ptr_factory_; | |
|
kylechar
2017/02/13 21:45:59
I don't think you need the WeakPtrFactory? It's no
| |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzoneExternal); | |
| 35 }; | |
| 36 | |
| 37 } // namespace display | |
| 38 | |
| 39 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_ | |
| OLD | NEW |