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

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

Issue 2549503002: Rename PlatformScreen to ScreenManager. (Closed)
Patch Set: Rebase. Created 4 years 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/screen_manager_stub.h ('k') | services/ui/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_stub.cc
diff --git a/services/ui/display/platform_screen_stub.cc b/services/ui/display/screen_manager_stub.cc
similarity index 69%
rename from services/ui/display/platform_screen_stub.cc
rename to services/ui/display/screen_manager_stub.cc
index 8a90a4d23a3652ca0ae09d1c708afd0e4e07de66..c664c8452bc72ff855bc84ec0f82d9eb581f6f4f 100644
--- a/services/ui/display/platform_screen_stub.cc
+++ b/services/ui/display/screen_manager_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_stub.h"
+#include "services/ui/display/screen_manager_stub.h"
#include <memory>
@@ -39,40 +39,39 @@ ViewportMetrics DefaultViewportMetrics() {
} // namespace
// static
-std::unique_ptr<PlatformScreen> PlatformScreen::Create() {
- return base::MakeUnique<PlatformScreenStub>();
+std::unique_ptr<ScreenManager> ScreenManager::Create() {
+ return base::MakeUnique<ScreenManagerStub>();
}
-PlatformScreenStub::PlatformScreenStub()
- : weak_ptr_factory_(this) {}
+ScreenManagerStub::ScreenManagerStub() : weak_ptr_factory_(this) {}
-PlatformScreenStub::~PlatformScreenStub() {}
+ScreenManagerStub::~ScreenManagerStub() {}
-void PlatformScreenStub::FixedSizeScreenConfiguration() {
+void ScreenManagerStub::FixedSizeScreenConfiguration() {
delegate_->OnDisplayAdded(display_id_, display_metrics_);
}
-void PlatformScreenStub::AddInterfaces(
+void ScreenManagerStub::AddInterfaces(
service_manager::InterfaceRegistry* registry) {}
-void PlatformScreenStub::Init(PlatformScreenDelegate* delegate) {
+void ScreenManagerStub::Init(ScreenManagerDelegate* delegate) {
DCHECK(delegate);
delegate_ = delegate;
display_metrics_ = DefaultViewportMetrics();
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&PlatformScreenStub::FixedSizeScreenConfiguration,
+ FROM_HERE, base::Bind(&ScreenManagerStub::FixedSizeScreenConfiguration,
weak_ptr_factory_.GetWeakPtr()));
}
-void PlatformScreenStub::RequestCloseDisplay(int64_t display_id) {
+void ScreenManagerStub::RequestCloseDisplay(int64_t display_id) {
if (display_id == display_id_) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&PlatformScreenDelegate::OnDisplayRemoved,
+ FROM_HERE, base::Bind(&ScreenManagerDelegate::OnDisplayRemoved,
base::Unretained(delegate_), display_id));
}
}
-int64_t PlatformScreenStub::GetPrimaryDisplayId() const {
+int64_t ScreenManagerStub::GetPrimaryDisplayId() const {
return display_id_;
}
« no previous file with comments | « services/ui/display/screen_manager_stub.h ('k') | services/ui/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698