Index: services/ui/display/platform_screen_impl.cc |
diff --git a/services/ui/display/platform_screen_impl.cc b/services/ui/display/platform_screen_impl.cc |
deleted file mode 100644 |
index a077af3e4b55847ebf4df3e3a1c870ad3e1a1459..0000000000000000000000000000000000000000 |
--- a/services/ui/display/platform_screen_impl.cc |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// 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 "services/ui/display/platform_screen_impl.h" |
- |
-#include <memory> |
- |
-#include "base/bind.h" |
-#include "base/location.h" |
-#include "base/memory/ptr_util.h" |
-#include "base/threading/thread_task_runner_handle.h" |
-#include "ui/gfx/geometry/rect.h" |
- |
-namespace display { |
-namespace { |
- |
-const int64_t kDisplayId = 1; |
- |
-} // namespace |
- |
-// static |
-std::unique_ptr<PlatformScreen> PlatformScreen::Create() { |
- return base::MakeUnique<PlatformScreenImpl>(); |
-} |
- |
-PlatformScreenImpl::PlatformScreenImpl() : weak_ptr_factory_(this) {} |
- |
-PlatformScreenImpl::~PlatformScreenImpl() {} |
- |
-void PlatformScreenImpl::FixedSizeScreenConfiguration() { |
- delegate_->OnDisplayAdded(this, kDisplayId, gfx::Rect(1024, 768)); |
-} |
- |
-void PlatformScreenImpl::Init(PlatformScreenDelegate* delegate) { |
- DCHECK(delegate); |
- delegate_ = delegate; |
- base::ThreadTaskRunnerHandle::Get()->PostTask( |
- FROM_HERE, base::Bind(&PlatformScreenImpl::FixedSizeScreenConfiguration, |
- weak_ptr_factory_.GetWeakPtr())); |
-} |
- |
-int64_t PlatformScreenImpl::GetPrimaryDisplayId() const { |
- return kDisplayId; |
-} |
- |
-} // namespace display |