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

Unified Diff: ui/aura/window_tree_host_ozone.h

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: coding style Created 6 years, 2 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: ui/aura/window_tree_host_ozone.h
diff --git a/ui/aura/window_tree_host_ozone.h b/ui/aura/window_tree_host_ozone.h
index 88736f335248e050ff0a1cf62b18b95bbb6c35ea..e52654f08526b7a7afc36b537e31630f1dcd57cc 100644
--- a/ui/aura/window_tree_host_ozone.h
+++ b/ui/aura/window_tree_host_ozone.h
@@ -24,6 +24,12 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost,
explicit WindowTreeHostOzone(const gfx::Rect& bounds);
virtual ~WindowTreeHostOzone();
+ protected:
+ // Translates the native mouse location into screen coordinates.
+ virtual void TranslateLocatedEvent(ui::LocatedEvent* event);
+
+ const gfx::Rect bounds() const { return bounds_; }
spang 2014/11/04 23:27:23 Please use the existing function GetBounds().
+
private:
// ui::PlatformWindowDelegate:
virtual void OnBoundsChanged(const gfx::Rect&) OVERRIDE;
@@ -61,6 +67,9 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost,
// The identifier used to create a compositing surface.
gfx::AcceleratedWidget widget_;
+ // The bounds of |platform_window_|.
+ gfx::Rect bounds_;
+
DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone);
};

Powered by Google App Engine
This is Rietveld 408576698