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

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

Issue 1899923002: Basic display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 8 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
Index: components/mus/ws/platform_screen_impl.h
diff --git a/components/mus/ws/platform_screen_impl.h b/components/mus/ws/platform_screen_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e2198cb6e190b5a109ea8db771562e83fd414ac
--- /dev/null
+++ b/components/mus/ws/platform_screen_impl.h
@@ -0,0 +1,45 @@
+// 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 COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_
+#define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_
+
+#include <stdint.h>
+
+#include "base/callback.h"
+#include "base/memory/weak_ptr.h"
+#include "components/mus/ws/platform_screen.h"
+
+namespace gfx {
+class Rect;
+}
+
+namespace mus {
+namespace ws {
+
+// PlatformScreenImpl provides the necessary functionality to configure all
+// attached physical displays on non-ozone platforms.
+class PlatformScreenImpl : public PlatformScreen {
+ public:
+ PlatformScreenImpl();
+ ~PlatformScreenImpl() override;
+
+ private:
+ // PlatformScreen.
+ void Init() override;
+ using ConfiguredDisplayCallback = base::Callback<void(int64_t, gfx::Rect)>;
sky 2016/05/04 17:05:44 This is already defined in PlatformScreen.
rjkroege 2016/05/04 22:50:13 Done.
+ void ConfigurePhysicalDisplay(
+ const ConfiguredDisplayCallback& callback) override;
+
+ void FixedSizeScreenConfiguration(ConfiguredDisplayCallback callback);
sky 2016/05/04 17:05:44 const &
rjkroege 2016/05/04 22:50:13 Done.
+
+ base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl);
+};
+
+} // namespace ws
+} // namespace mus
+
+#endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698