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

Unified Diff: services/ui/display/platform_screen_impl.cc

Issue 2317073003: Rename PlatformScreen implementations. (Closed)
Patch Set: Fix tests. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/display/platform_screen_impl.h ('k') | services/ui/display/platform_screen_impl_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « services/ui/display/platform_screen_impl.h ('k') | services/ui/display/platform_screen_impl_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698