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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Rebase and fix build issues. 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
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 399594c03f9db6f83a73254dde4854c76a6cbd0c..9478b463f1771aae0d862b7bb948b7fc12b1a628 100644
--- a/services/ui/ws/platform_display_default.h
+++ b/services/ui/ws/platform_display_default.h
@@ -18,6 +18,7 @@
namespace ui {
+class EventSink;
class ImageCursors;
class LocatedEvent;
class PlatformWindow;
@@ -34,6 +35,9 @@ class PlatformDisplayDefault : public PlatformDisplay,
const display::ViewportMetrics& metrics);
~PlatformDisplayDefault() override;
+ // EventSource::
+ EventSink* GetEventSink() override;
+
// PlatformDisplay:
void Init(PlatformDisplayDelegate* delegate) override;
void SetViewportSize(const gfx::Size& size) override;
@@ -54,6 +58,7 @@ class PlatformDisplayDefault : public PlatformDisplay,
// updated to be (1900, 200).
// TODO(riajiang): This is totally broken with HDPI.
void UpdateEventRootLocation(ui::LocatedEvent* event);
+ void DispatchEventToDelegate(const ui::Event& event);
// ui::PlatformWindowDelegate:
void OnBoundsChanged(const gfx::Rect& new_bounds) override;

Powered by Google App Engine
This is Rietveld 408576698