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

Side by Side Diff: services/ui/display/platform_screen_impl.h

Issue 2317073003: Rename PlatformScreen implementations. (Closed)
Patch Set: Fix tests. Created 4 years, 3 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
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/platform_screen_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_
6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_
7
8 #include <stdint.h>
9
10 #include "base/callback.h"
11 #include "base/memory/weak_ptr.h"
12 #include "services/ui/display/platform_screen.h"
13
14 namespace display {
15
16 // PlatformScreenImpl provides the necessary functionality to configure all
17 // attached physical displays on non-ozone platforms.
18 class PlatformScreenImpl : public PlatformScreen {
19 public:
20 PlatformScreenImpl();
21 ~PlatformScreenImpl() override;
22
23 private:
24 // Fake creation of a single 1024x768 display.
25 void FixedSizeScreenConfiguration();
26
27 // PlatformScreen.
28 void Init(PlatformScreenDelegate* delegate) override;
29 int64_t GetPrimaryDisplayId() const override;
30
31 PlatformScreenDelegate* delegate_ = nullptr;
32
33 base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_;
34
35 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl);
36 };
37
38 } // namespace display
39
40 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/platform_screen_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698