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

Unified Diff: components/mus/ws/platform_display_delegate.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/platform_display_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/platform_display_delegate.h
diff --git a/components/mus/ws/platform_display_delegate.h b/components/mus/ws/platform_display_delegate.h
deleted file mode 100644
index 95a9c761dc40db21aa51cbcd99d302badfa1e715..0000000000000000000000000000000000000000
--- a/components/mus/ws/platform_display_delegate.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 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 COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_
-#define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_
-
-#include "components/mus/ws/ids.h"
-
-namespace ui {
-class Event;
-}
-
-namespace mus {
-
-namespace ws {
-
-class ServerWindow;
-struct ViewportMetrics;
-
-// PlatformDisplayDelegate is implemented by an object that manages the
-// lifetime of a PlatformDisplay, forwards events to the appropriate windows,
-/// and responses to changes in viewport size.
-class PlatformDisplayDelegate {
- public:
- // Returns the root window of this display.
- virtual ServerWindow* GetRootWindow() = 0;
-
- // Called when the window managed by the PlatformDisplay is closed.
- virtual void OnDisplayClosed() = 0;
-
- // Called when an event arrives.
- virtual void OnEvent(const ui::Event& event) = 0;
-
- // Called when the Display loses capture.
- virtual void OnNativeCaptureLost() = 0;
-
- // Signals that the metrics of this display's viewport has changed.
- virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
- const ViewportMetrics& new_metrics) = 0;
-
- // Called when a compositor frame is finished drawing.
- virtual void OnCompositorFrameDrawn() = 0;
-
- protected:
- virtual ~PlatformDisplayDelegate() {}
-};
-
-} // namespace ws
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/platform_display_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698