diff options
author | pkotwicz <pkotwicz@chromium.org> | 2015-01-27 12:08:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-27 20:10:22 +0000 |
commit | f52514eaab866573a7022cea2da3b93f1c18924d (patch) | |
tree | c3e0649d801cc7cce8d3c18cc1b8f65ed3bd5d94 /ui/aura/window_tree_host_ozone.h | |
parent | 1db093769786287b1a34ef49c30ecf6bf64a7bfc (diff) | |
download | chromium_src-f52514eaab866573a7022cea2da3b93f1c18924d.zip chromium_src-f52514eaab866573a7022cea2da3b93f1c18924d.tar.gz chromium_src-f52514eaab866573a7022cea2da3b93f1c18924d.tar.bz2 |
[Ozone] Constrain the cursor when overscan insets are set
Constrain the mouse cursor to the painted region of the screen when overscan
insets are set.
BUG=427619
TEST=Manual, see bug
Review URL: https://codereview.chromium.org/873563002
Cr-Commit-Position: refs/heads/master@{#313336}
Diffstat (limited to 'ui/aura/window_tree_host_ozone.h')
-rw-r--r-- | ui/aura/window_tree_host_ozone.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ui/aura/window_tree_host_ozone.h b/ui/aura/window_tree_host_ozone.h index 716ff7a..e4fcd02 100644 --- a/ui/aura/window_tree_host_ozone.h +++ b/ui/aura/window_tree_host_ozone.h @@ -26,7 +26,20 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, protected: // WindowTreeHost: + ui::EventSource* GetEventSource() override; + gfx::AcceleratedWidget GetAcceleratedWidget() override; + void Show() override; + void Hide() override; gfx::Rect GetBounds() const override; + void SetBounds(const gfx::Rect& bounds) override; + gfx::Point GetLocationOnNativeScreen() const override; + void SetCapture() override; + void ReleaseCapture() override; + void SetCursorNative(gfx::NativeCursor cursor_type) override; + void MoveCursorToNative(const gfx::Point& location) override; + void OnCursorVisibilityChangedNative(bool show) override; + + ui::PlatformWindow* platform_window() { return platform_window_.get(); } private: // ui::PlatformWindowDelegate: @@ -40,19 +53,6 @@ class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override; void OnActivationChanged(bool active) override; - // WindowTreeHost: - ui::EventSource* GetEventSource() override; - gfx::AcceleratedWidget GetAcceleratedWidget() override; - void Show() override; - void Hide() override; - void SetBounds(const gfx::Rect& bounds) override; - gfx::Point GetLocationOnNativeScreen() const override; - void SetCapture() override; - void ReleaseCapture() override; - void SetCursorNative(gfx::NativeCursor cursor_type) override; - void MoveCursorToNative(const gfx::Point& location) override; - void OnCursorVisibilityChangedNative(bool show) override; - // ui::EventSource overrides. ui::EventProcessor* GetEventProcessor() override; |