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

Unified Diff: services/ui/ws/platform_display_default.h

Issue 2736943003: Start to decouple display::Display from ws::PlatformDisplay. (Closed)
Patch Set: Fix comments. Created 3 years, 9 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/ws/platform_display.cc ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_default.h
diff --git a/services/ui/ws/platform_display_default.h b/services/ui/ws/platform_display_default.h
index 04252ee221912b8e7b53906235498b488aa353d3..399594c03f9db6f83a73254dde4854c76a6cbd0c 100644
--- a/services/ui/ws/platform_display_default.h
+++ b/services/ui/ws/platform_display_default.h
@@ -13,6 +13,7 @@
#include "services/ui/ws/frame_generator_delegate.h"
#include "services/ui/ws/platform_display.h"
#include "services/ui/ws/platform_display_delegate.h"
+#include "services/ui/ws/server_window.h"
#include "ui/platform_window/platform_window_delegate.h"
namespace ui {
@@ -29,12 +30,12 @@ class PlatformDisplayDefault : public PlatformDisplay,
public ui::PlatformWindowDelegate,
public FrameGeneratorDelegate {
public:
- explicit PlatformDisplayDefault(const PlatformDisplayInitParams& init_params);
+ PlatformDisplayDefault(ServerWindow* root_window,
+ const display::ViewportMetrics& metrics);
~PlatformDisplayDefault() override;
// PlatformDisplay:
void Init(PlatformDisplayDelegate* delegate) override;
- int64_t GetId() const override;
void SetViewportSize(const gfx::Size& size) override;
void SetTitle(const base::string16& title) override;
void SetCapture() override;
@@ -42,9 +43,7 @@ class PlatformDisplayDefault : public PlatformDisplay,
void SetCursorById(mojom::Cursor cursor) override;
void UpdateTextInputState(const ui::TextInputState& state) override;
void SetImeVisibility(bool visible) override;
- gfx::Rect GetBounds() const override;
bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override;
- const display::ViewportMetrics& GetViewportMetrics() const override;
gfx::AcceleratedWidget GetAcceleratedWidget() const override;
FrameGenerator* GetFrameGenerator() override;
@@ -72,7 +71,7 @@ class PlatformDisplayDefault : public PlatformDisplay,
// FrameGeneratorDelegate:
bool IsInHighContrastMode() override;
- const int64_t display_id_;
+ ServerWindow* root_window_;
#if !defined(OS_ANDROID)
std::unique_ptr<ui::ImageCursors> image_cursors_;
@@ -84,7 +83,6 @@ class PlatformDisplayDefault : public PlatformDisplay,
display::ViewportMetrics metrics_;
std::unique_ptr<ui::PlatformWindow> platform_window_;
gfx::AcceleratedWidget widget_;
- ServerWindow* root_window_;
float init_device_scale_factor_;
DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault);
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698