Index: services/ui/ws/platform_display.h |
diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h |
index 96b52cf8fb56235640f317566da47b4d4173d4cc..33ad23ecec99670c01907c07cde32c3530953154 100644 |
--- a/services/ui/ws/platform_display.h |
+++ b/services/ui/ws/platform_display.h |
@@ -15,6 +15,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/strings/string16.h" |
#include "build/build_config.h" |
+#include "services/ui/display/viewport_metrics.h" |
#include "services/ui/public/interfaces/cursor.mojom.h" |
#include "services/ui/public/interfaces/window_manager.mojom.h" |
#include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
@@ -65,10 +66,6 @@ class PlatformDisplay { |
virtual void Init(PlatformDisplayDelegate* delegate) = 0; |
- // Schedules a paint for the specified region in the coordinates of |window|. |
- virtual void SchedulePaint(const ServerWindow* window, |
- const gfx::Rect& bounds) = 0; |
- |
virtual void SetViewportSize(const gfx::Size& size) = 0; |
virtual void SetTitle(const base::string16& title) = 0; |
@@ -82,9 +79,6 @@ class PlatformDisplay { |
virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; |
virtual void SetImeVisibility(bool visible) = 0; |
- // Returns true if a compositor frame has been submitted but not drawn yet. |
- virtual bool IsFramePending() const = 0; |
- |
virtual gfx::Rect GetBounds() const = 0; |
// Updates the viewport metrics for the display, returning true if any |
@@ -124,8 +118,6 @@ class DefaultPlatformDisplay : public PlatformDisplay, |
// PlatformDisplay: |
void Init(PlatformDisplayDelegate* delegate) override; |
int64_t GetId() const override; |
- void SchedulePaint(const ServerWindow* window, |
- const gfx::Rect& bounds) override; |
void SetViewportSize(const gfx::Size& size) override; |
void SetTitle(const base::string16& title) override; |
void SetCapture() override; |
@@ -133,7 +125,6 @@ class DefaultPlatformDisplay : public PlatformDisplay, |
void SetCursorById(mojom::Cursor cursor) override; |
void UpdateTextInputState(const ui::TextInputState& state) override; |
void SetImeVisibility(bool visible) override; |
- bool IsFramePending() const override; |
gfx::Rect GetBounds() const override; |
bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; |
const display::ViewportMetrics& GetViewportMetrics() const override; |
@@ -162,7 +153,6 @@ class DefaultPlatformDisplay : public PlatformDisplay, |
void OnActivationChanged(bool active) override; |
// FrameGeneratorDelegate: |
- ServerWindow* GetRootWindow() override; |
bool IsInHighContrastMode() override; |
int64_t id_; |