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

Unified Diff: ash/host/ash_window_tree_host_ozone.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Flatten TranslateLocatedEvent() Created 6 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 | « ash/host/ash_window_tree_host.cc ('k') | ash/host/ash_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « ash/host/ash_window_tree_host.cc ('k') | ash/host/ash_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698