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

Unified Diff: components/mus/mus_app.h

Issue 1899923002: Basic display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromecast build Created 4 years, 7 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 | « no previous file | components/mus/mus_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/mus_app.h
diff --git a/components/mus/mus_app.h b/components/mus/mus_app.h
index 64958ba9b91373fd8dfd31393549907f5ee2692e..9fa3f5f34ec87b0ef1ce5c03b8fa25a8aa320039 100644
--- a/components/mus/mus_app.h
+++ b/components/mus/mus_app.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "components/mus/public/interfaces/display.mojom.h"
#include "components/mus/public/interfaces/gpu.mojom.h"
#include "components/mus/public/interfaces/user_access_manager.mojom.h"
@@ -31,6 +32,10 @@
#include "ui/ozone/public/client_native_pixmap_factory.h"
#endif
+namespace gfx {
+class Rect;
+}
+
namespace shell {
class Connector;
}
@@ -42,6 +47,7 @@ class PlatformEventSource;
namespace mus {
namespace ws {
class ForwardingWindowManager;
+class PlatformScreen;
class WindowServer;
}
@@ -117,6 +123,12 @@ class MandolineUIServicesApp
void Create(shell::Connection* connection,
mojom::GpuRequest request) override;
+ // Callback for display configuration. |id| is the identifying token for the
+ // configured display that will identify a specific physical display across
+ // configuration changes. |bounds| is the bounds of the display in screen
+ // coordinates.
+ void OnCreatedPhysicalDisplay(int64_t id, const gfx::Rect& bounds);
+
ws::PlatformDisplayInitParams platform_display_init_params_;
std::unique_ptr<ws::WindowServer> window_server_;
std::unique_ptr<ui::PlatformEventSource> event_source_;
@@ -131,6 +143,10 @@ class MandolineUIServicesApp
std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_;
#endif
+ std::unique_ptr<ws::PlatformScreen> platform_screen_;
+
+ base::WeakPtrFactory<MandolineUIServicesApp> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(MandolineUIServicesApp);
};
« no previous file with comments | « no previous file | components/mus/mus_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698