Index: ash/host/ash_window_tree_host_ozone.cc |
diff --git a/ash/host/ash_window_tree_host_ozone.cc b/ash/host/ash_window_tree_host_ozone.cc |
index 764eededa4163e8959b9ebf8cee8fbc8cf93111d..d83d484fed8637410202894a64c0ba80ebd4d096 100644 |
--- a/ash/host/ash_window_tree_host_ozone.cc |
+++ b/ash/host/ash_window_tree_host_ozone.cc |
@@ -34,6 +34,7 @@ class AshWindowTreeHostOzone : public AshWindowTreeHost, |
virtual gfx::Transform GetRootTransform() const override; |
virtual gfx::Transform GetInverseRootTransform() const override; |
virtual void UpdateRootWindowSize(const gfx::Size& host_size) override; |
+ virtual void DispatchEvent(ui::Event* event) override; |
TransformerHelper transformer_helper_; |
@@ -87,6 +88,12 @@ void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { |
transformer_helper_.UpdateWindowSize(host_size); |
} |
+void AshWindowTreeHostOzone::DispatchEvent(ui::Event* event) { |
+ if (event->IsLocatedEvent()) |
+ TranslateLocatedEvent(static_cast<ui::LocatedEvent*>(event)); |
+ SendEventToProcessor(event); |
+} |
+ |
} // namespace |
AshWindowTreeHost* AshWindowTreeHost::Create( |