diff options
author | lionel.g.landwerlin <lionel.g.landwerlin@intel.com> | 2014-12-03 08:46:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 16:47:24 +0000 |
commit | 164046d3753535889d3ba1f0060a0280a94bc1c7 (patch) | |
tree | 87f44023922fa59e2433946ec2b2e6748b815c06 /ui/aura/window_tree_host_ozone.h | |
parent | e2e9de9c4c933898fe503cec2848701fff08a3cf (diff) | |
download | chromium_src-164046d3753535889d3ba1f0060a0280a94bc1c7.zip chromium_src-164046d3753535889d3ba1f0060a0280a94bc1c7.tar.gz chromium_src-164046d3753535889d3ba1f0060a0280a94bc1c7.tar.bz2 |
ash: ozone: apply transformation to events outside the root window
When dragging windows from one screen to another, events need to be
captured and send to the window where the drag started. As a result we
also need to translate event back into the original window's location.
BUG=423383
TEST=none
Review URL: https://codereview.chromium.org/657603002
Cr-Commit-Position: refs/heads/master@{#306623}
Diffstat (limited to 'ui/aura/window_tree_host_ozone.h')
-rw-r--r-- | ui/aura/window_tree_host_ozone.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/aura/window_tree_host_ozone.h b/ui/aura/window_tree_host_ozone.h index 296b14f..16c187a 100644 --- a/ui/aura/window_tree_host_ozone.h +++ b/ui/aura/window_tree_host_ozone.h @@ -24,6 +24,10 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, explicit WindowTreeHostOzone(const gfx::Rect& bounds); virtual ~WindowTreeHostOzone(); + protected: + // WindowTreeHost: + virtual gfx::Rect GetBounds() const override; + private: // ui::PlatformWindowDelegate: virtual void OnBoundsChanged(const gfx::Rect&) override; @@ -42,7 +46,6 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, virtual gfx::AcceleratedWidget GetAcceleratedWidget() override; virtual void Show() override; virtual void Hide() override; - virtual gfx::Rect GetBounds() const override; virtual void SetBounds(const gfx::Rect& bounds) override; virtual gfx::Point GetLocationOnNativeScreen() const override; virtual void SetCapture() override; |