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

Unified Diff: services/ui/display/screen_manager_ozone_external.h

Issue 2697693002: Stub out ScreenManagerOzoneExternal (Closed)
Patch Set: fixed typo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/screen_manager_ozone_external.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_ozone_external.h
diff --git a/services/ui/display/screen_manager_ozone_external.h b/services/ui/display/screen_manager_ozone_external.h
new file mode 100644
index 0000000000000000000000000000000000000000..31a3b6ce899a10edd9ecc626d59cda91a496524e
--- /dev/null
+++ b/services/ui/display/screen_manager_ozone_external.h
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
+#define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
+
+#include "services/ui/display/screen_manager.h"
+
+namespace display {
+
+// In external window mode, the purpose of having a ScreenManager
+// does not apply: there is not a ScreenManagerDelegate manager
+// responsible for creating Display instances.
+// Basically, in this mode WindowTreeHost creates the display instance.
+//
+// ScreenManagerOzoneExternal provides the stub out implementation
+// of ScreenManager for Ozone non-chromeos platforms.
+class ScreenManagerOzoneExternal : public ScreenManager {
+ public:
+ ScreenManagerOzoneExternal();
+ ~ScreenManagerOzoneExternal() override;
+
+ private:
+ // ScreenManager.
+ void AddInterfaces(service_manager::InterfaceRegistry* registry) override;
+ void Init(ScreenManagerDelegate* delegate) override;
+ int64_t GetPrimaryDisplayId() const override;
+ void RequestCloseDisplay(int64_t display_id) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzoneExternal);
+};
+
+} // namespace display
+
+#endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_EXTERNAL_H_
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/screen_manager_ozone_external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698