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

Unified Diff: services/ui/display/platform_screen_delegate.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/platform_screen.cc ('k') | services/ui/display/platform_screen_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_delegate.h
diff --git a/services/ui/display/platform_screen_delegate.h b/services/ui/display/platform_screen_delegate.h
deleted file mode 100644
index 7ad956df8dc66423ee9e5ea33b7a088e9c3d1e8b..0000000000000000000000000000000000000000
--- a/services/ui/display/platform_screen_delegate.h
+++ /dev/null
@@ -1,46 +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_DELEGATE_H_
-#define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
-
-#include <stdint.h>
-
-namespace gfx {
-class Rect;
-class Size;
-}
-
-namespace display {
-
-class PlatformScreen;
-struct ViewportMetrics;
-
-// The PlatformScreenDelegate will be informed of changes to the physical
-// and/or virtual displays by PlatformScreen.
-class PlatformScreenDelegate {
- public:
- // Called when a display is added. |id| is the display id of the new display
- // and |metrics| contains display viewport information.
- virtual void OnDisplayAdded(int64_t id, const ViewportMetrics& metrics) = 0;
-
- // Called when a display is removed. |id| is the display id of the display
- // that was removed.
- virtual void OnDisplayRemoved(int64_t id) = 0;
-
- // Called when a display is modified. |id| is the display id of the modified
- // display and |metrics| contains updated display viewport information.
- virtual void OnDisplayModified(int64_t id,
- const ViewportMetrics& metrics) = 0;
-
- // Called when the primary display is changed.
- virtual void OnPrimaryDisplayChanged(int64_t primary_display_id) = 0;
-
- protected:
- virtual ~PlatformScreenDelegate() {}
-};
-
-} // namespace display
-
-#endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_
« no previous file with comments | « services/ui/display/platform_screen.cc ('k') | services/ui/display/platform_screen_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698