OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/mus/ws/platform_screen_impl.h" | 5 #include "components/mus/ws/platform_screen_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
12 | 12 |
13 namespace mus { | 13 namespace mus { |
14 | 14 |
15 namespace ws { | 15 namespace ws { |
16 namespace { | 16 namespace { |
17 | 17 |
18 void FixedSizeScreenConfiguration( | 18 void FixedSizeScreenConfiguration( |
19 const PlatformScreen::ConfiguredDisplayCallback& callback) { | 19 const PlatformScreen::ConfiguredDisplayCallback& callback) { |
20 callback.Run(1, gfx::Rect(1024, 768)); | 20 callback.Run(1, gfx::Rect(1024, 768)); |
(...skipping 13 matching lines...) Expand all Loading... |
34 void PlatformScreenImpl::Init() {} | 34 void PlatformScreenImpl::Init() {} |
35 | 35 |
36 void PlatformScreenImpl::ConfigurePhysicalDisplay( | 36 void PlatformScreenImpl::ConfigurePhysicalDisplay( |
37 const PlatformScreen::ConfiguredDisplayCallback& callback) { | 37 const PlatformScreen::ConfiguredDisplayCallback& callback) { |
38 base::ThreadTaskRunnerHandle::Get()->PostTask( | 38 base::ThreadTaskRunnerHandle::Get()->PostTask( |
39 FROM_HERE, base::Bind(&FixedSizeScreenConfiguration, callback)); | 39 FROM_HERE, base::Bind(&FixedSizeScreenConfiguration, callback)); |
40 } | 40 } |
41 | 41 |
42 } // namespace ws | 42 } // namespace ws |
43 } // namespace mus | 43 } // namespace mus |
OLD | NEW |