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

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

Issue 2549503002: Rename PlatformScreen to ScreenManager. (Closed)
Patch Set: Rebase. Created 4 years 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/platform_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen.h
diff --git a/services/ui/display/platform_screen.h b/services/ui/display/platform_screen.h
deleted file mode 100644
index c266a57ee95adfc706c3baadb29653225479ad9a..0000000000000000000000000000000000000000
--- a/services/ui/display/platform_screen.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2016 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_PLATFORM_SCREEN_H_
-#define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "services/ui/display/platform_screen_delegate.h"
-
-namespace service_manager {
-class InterfaceRegistry;
-}
-
-namespace display {
-
-// PlatformScreen provides the necessary functionality to configure all
-// attached physical displays.
-class PlatformScreen {
- public:
- PlatformScreen();
- virtual ~PlatformScreen();
-
- // Creates a singleton PlatformScreen instance.
- static std::unique_ptr<PlatformScreen> Create();
- static PlatformScreen* GetInstance();
-
- // Registers Mojo interfaces provided.
- virtual void AddInterfaces(service_manager::InterfaceRegistry* registry) = 0;
-
- // Triggers initial display configuration to start. On device this will
- // configuration the connected displays. Off device this will create one or
- // more fake displays and pretend to configure them. A non-null |delegate|
- // must be provided that will receive notifications when displays are added,
- // removed or modified.
- virtual void Init(PlatformScreenDelegate* delegate) = 0;
-
- // Handle requests from the platform to close a display.
- virtual void RequestCloseDisplay(int64_t display_id) = 0;
-
- virtual int64_t GetPrimaryDisplayId() const = 0;
-
- private:
- static PlatformScreen* instance_; // Instance is not owned.
-
- DISALLOW_COPY_AND_ASSIGN(PlatformScreen);
-};
-
-} // namespace display
-
-#endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/platform_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698