| OLD | NEW |
| (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 |
| OLD | NEW |