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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_
6 #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_
7
8 #include <stdint.h>
9
10 #include "base/callback.h"
11 #include "base/memory/weak_ptr.h"
12 #include "components/mus/ws/platform_screen.h"
13
14 namespace gfx {
15 class Rect;
16 }
17
18 namespace mus {
19 namespace ws {
20
21 // PlatformScreenImpl provides the necessary functionality to configure all
22 // attached physical displays on non-ozone platforms.
23 class PlatformScreenImpl : public PlatformScreen {
24 public:
25 PlatformScreenImpl();
26 ~PlatformScreenImpl() override;
27
28 private:
29 // PlatformScreen.
30 void Init() override;
31 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.
32 void ConfigurePhysicalDisplay(
33 const ConfiguredDisplayCallback& callback) override;
34
35 void FixedSizeScreenConfiguration(ConfiguredDisplayCallback callback);
sky 2016/05/04 17:05:44 const &
rjkroege 2016/05/04 22:50:13 Done.
36
37 base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_;
38
39 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl);
40 };
41
42 } // namespace ws
43 } // namespace mus
44
45 #endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698