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

Unified Diff: services/ui/display/platform_screen_stub.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_stub.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_stub.cc
diff --git a/services/ui/display/platform_screen_impl.cc b/services/ui/display/platform_screen_stub.cc
similarity index 64%
rename from services/ui/display/platform_screen_impl.cc
rename to services/ui/display/platform_screen_stub.cc
index a077af3e4b55847ebf4df3e3a1c870ad3e1a1459..bbfea1c68e51507293f782b48150dc56f8ae0fbf 100644
--- a/services/ui/display/platform_screen_impl.cc
+++ b/services/ui/display/platform_screen_stub.cc
@@ -2,7 +2,7 @@
// 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 "services/ui/display/platform_screen_stub.h"
#include <memory>
@@ -21,26 +21,26 @@ const int64_t kDisplayId = 1;
// static
std::unique_ptr<PlatformScreen> PlatformScreen::Create() {
- return base::MakeUnique<PlatformScreenImpl>();
+ return base::MakeUnique<PlatformScreenStub>();
}
-PlatformScreenImpl::PlatformScreenImpl() : weak_ptr_factory_(this) {}
+PlatformScreenStub::PlatformScreenStub() : weak_ptr_factory_(this) {}
-PlatformScreenImpl::~PlatformScreenImpl() {}
+PlatformScreenStub::~PlatformScreenStub() {}
-void PlatformScreenImpl::FixedSizeScreenConfiguration() {
+void PlatformScreenStub::FixedSizeScreenConfiguration() {
delegate_->OnDisplayAdded(this, kDisplayId, gfx::Rect(1024, 768));
}
-void PlatformScreenImpl::Init(PlatformScreenDelegate* delegate) {
+void PlatformScreenStub::Init(PlatformScreenDelegate* delegate) {
DCHECK(delegate);
delegate_ = delegate;
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&PlatformScreenImpl::FixedSizeScreenConfiguration,
+ FROM_HERE, base::Bind(&PlatformScreenStub::FixedSizeScreenConfiguration,
weak_ptr_factory_.GetWeakPtr()));
}
-int64_t PlatformScreenImpl::GetPrimaryDisplayId() const {
+int64_t PlatformScreenStub::GetPrimaryDisplayId() const {
return kDisplayId;
}
« no previous file with comments | « services/ui/display/platform_screen_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698