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

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

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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_impl.h"
6
7 #include "base/bind.h"
8 #include "base/location.h"
9 #include "base/memory/ptr_util.h"
10 #include "base/threading/thread_task_runner_handle.h"
11 #include "ui/gfx/geometry/rect.h"
12
13 namespace mus {
14
15 namespace ws {
16 namespace {
17
18 void FixedSizeScreenConfiguration(
19 const PlatformScreen::ConfiguredDisplayCallback& callback) {
20 callback.Run(1, gfx::Rect(1024, 768));
21 }
22
23 } // namespace
24
25 // static
26 std::unique_ptr<PlatformScreen> PlatformScreen::Create() {
27 return base::WrapUnique(new PlatformScreenImpl);
28 }
29
30 PlatformScreenImpl::PlatformScreenImpl() {}
31
32 PlatformScreenImpl::~PlatformScreenImpl() {}
33
34 void PlatformScreenImpl::Init() {}
35
36 void PlatformScreenImpl::ConfigurePhysicalDisplay(
37 const PlatformScreen::ConfiguredDisplayCallback& callback) {
38 base::ThreadTaskRunnerHandle::Get()->PostTask(
39 FROM_HERE, base::Bind(&FixedSizeScreenConfiguration, callback));
40 }
41
42 } // namespace ws
43 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/platform_screen_impl.h ('k') | components/mus/ws/platform_screen_impl_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698