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

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

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_ozone_unittests.cc ('k') | services/ui/display/screen_manager_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_stub.h
diff --git a/services/ui/display/platform_screen_stub.h b/services/ui/display/screen_manager_stub.h
similarity index 54%
rename from services/ui/display/platform_screen_stub.h
rename to services/ui/display/screen_manager_stub.h
index 787f497c2af7bcd2b770ba080cc4eefcb0ceaf60..b780bb4d9dc7dc65bbba8eb44bfcb46b4b40dc2e 100644
--- a/services/ui/display/platform_screen_stub.h
+++ b/services/ui/display/screen_manager_stub.h
@@ -2,31 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_STUB_H_
-#define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_STUB_H_
+#ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_STUB_H_
+#define SERVICES_UI_DISPLAY_SCREEN_MANAGER_STUB_H_
#include <stdint.h>
#include "base/memory/weak_ptr.h"
-#include "services/ui/display/platform_screen.h"
+#include "services/ui/display/screen_manager.h"
#include "services/ui/display/viewport_metrics.h"
namespace display {
-// PlatformScreenStub provides the necessary functionality to configure a fixed
+// ScreenManagerStub provides the necessary functionality to configure a fixed
// 1024x768 display for non-ozone platforms.
-class PlatformScreenStub : public PlatformScreen {
+class ScreenManagerStub : public ScreenManager {
public:
- PlatformScreenStub();
- ~PlatformScreenStub() override;
+ ScreenManagerStub();
+ ~ScreenManagerStub() override;
private:
// Fake creation of a single 1024x768 display.
void FixedSizeScreenConfiguration();
- // PlatformScreen.
+ // ScreenManager.
void AddInterfaces(service_manager::InterfaceRegistry* registry) override;
- void Init(PlatformScreenDelegate* delegate) override;
+ void Init(ScreenManagerDelegate* delegate) override;
void RequestCloseDisplay(int64_t display_id) override;
int64_t GetPrimaryDisplayId() const override;
@@ -34,13 +34,13 @@ class PlatformScreenStub : public PlatformScreen {
int64_t display_id_ = 1;
ViewportMetrics display_metrics_;
- PlatformScreenDelegate* delegate_ = nullptr;
+ ScreenManagerDelegate* delegate_ = nullptr;
- base::WeakPtrFactory<PlatformScreenStub> weak_ptr_factory_;
+ base::WeakPtrFactory<ScreenManagerStub> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(PlatformScreenStub);
+ DISALLOW_COPY_AND_ASSIGN(ScreenManagerStub);
};
} // namespace display
-#endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_STUB_H_
+#endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_STUB_H_
« no previous file with comments | « services/ui/display/screen_manager_ozone_unittests.cc ('k') | services/ui/display/screen_manager_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698