| Index: components/mus/ws/platform_screen.cc
|
| diff --git a/components/mus/ws/platform_screen.cc b/components/mus/ws/platform_screen.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..52f9e5d945d6cf95d15fa94d9c5a19bcb42e31ae
|
| --- /dev/null
|
| +++ b/components/mus/ws/platform_screen.cc
|
| @@ -0,0 +1,55 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/mus/ws/platform_screen.h"
|
| +
|
| +#include "base/bind.h"
|
| +#include "base/location.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| +#include "ui/display/types/display_snapshot.h"
|
| +#include "ui/display/types/native_display_delegate.h"
|
| +#include "ui/display/types/native_display_observer.h"
|
| +
|
| +namespace mus {
|
| +namespace ws {
|
| +
|
| +PlatformScreen::PlatformScreen()
|
| + : is_configuring_(false),
|
| + should_configure_(false),
|
| + weak_ptr_factory_(this) {}
|
| +
|
| +PlatformScreen::~PlatformScreen() {}
|
| +
|
| +void PlatformScreen::Init() {}
|
| +
|
| +void PlatformScreen::FixedSizeScreenConfiguration(
|
| + ConfiguredDisplayCallback callback) {
|
| + callback.Run(1, gfx::Rect(1024, 768));
|
| +}
|
| +
|
| +void PlatformScreen::ConfigurePhysicalDisplay(
|
| + const ConfiguredDisplayCallback& callback) {
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&PlatformScreen::FixedSizeScreenConfiguration,
|
| + weak_ptr_factory_.GetWeakPtr(), callback));
|
| +}
|
| +
|
| +void PlatformScreen::OnConfigurationChanged() {
|
| + NOTREACHED();
|
| +}
|
| +void PlatformScreen::OnDisplaysAquired(
|
| + const ConfiguredDisplayCallback& callback,
|
| + const std::vector<ui::DisplaySnapshot*>& displays) {
|
| + NOTREACHED();
|
| +}
|
| +void PlatformScreen::OnDisplayConfigured(
|
| + const ConfiguredDisplayCallback& callback,
|
| + int64_t id,
|
| + const gfx::Rect& bounds,
|
| + bool success) {
|
| + NOTREACHED();
|
| +}
|
| +
|
| +} // namespace ws
|
| +} // namespace mus
|
|
|