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

Side by Side Diff: components/mus/ws/platform_screen.cc

Issue 1899923002: Basic display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed debugging code 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 #include "components/mus/ws/platform_screen.h"
6
7 #include "base/bind.h"
8 #include "base/location.h"
9 #include "base/thread_task_runner_handle.h"
10 #include "ui/display/types/display_snapshot.h"
11 #include "ui/display/types/native_display_delegate.h"
12 #include "ui/display/types/native_display_observer.h"
13
14 namespace mus {
15 namespace ws {
16
17 PlatformScreen::PlatformScreen()
18 : is_configuring_(false),
19 should_configure_(false),
20 weak_ptr_factory_(this) {}
21
22 PlatformScreen::~PlatformScreen() {}
23
24 void PlatformScreen::Init() {}
25
26 void PlatformScreen::FixedSizeScreenConfiguration(
27 ConfiguredDisplayCallback callback) {
28 callback.Run(1, gfx::Rect(1024, 768));
29 }
30
31 void PlatformScreen::ConfigurePhysicalDisplay(
32 const ConfiguredDisplayCallback& callback) {
33 base::ThreadTaskRunnerHandle::Get()->PostTask(
34 FROM_HERE, base::Bind(&PlatformScreen::FixedSizeScreenConfiguration,
35 weak_ptr_factory_.GetWeakPtr(), callback));
36 }
37
38 void PlatformScreen::OnConfigurationChanged() {
39 NOTREACHED();
40 }
41 void PlatformScreen::OnDisplaysAquired(
42 const ConfiguredDisplayCallback& callback,
43 const std::vector<ui::DisplaySnapshot*>& displays) {
44 NOTREACHED();
45 }
46 void PlatformScreen::OnDisplayConfigured(
47 const ConfiguredDisplayCallback& callback,
48 int64_t id,
49 const gfx::Rect& bounds,
50 bool success) {
51 NOTREACHED();
52 }
53
54 } // namespace ws
55 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698