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/platform_window/win | |
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/platform_window/win')
-rw-r--r-- | ui/platform_window/win/win_window.cc | 3 | ||||
-rw-r--r-- | ui/platform_window/win/win_window.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc index f3402c3..9bc8892 100644 --- a/ui/platform_window/win/win_window.cc +++ b/ui/platform_window/win/win_window.cc @@ -107,6 +107,9 @@ void WinWindow::SetCursor(PlatformCursor cursor) {} void WinWindow::MoveCursorTo(const gfx::Point& location) {} +void WinWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { +} + LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) { // TODO(vadimt): Remove ScopedTracker below once crbug.com/440919 is fixed. tracked_objects::ScopedTracker tracking_profile( diff --git a/ui/platform_window/win/win_window.h b/ui/platform_window/win/win_window.h index 65ffb5a..12aa7ad 100644 --- a/ui/platform_window/win/win_window.h +++ b/ui/platform_window/win/win_window.h @@ -35,6 +35,7 @@ class WIN_WINDOW_EXPORT WinWindow : public NON_EXPORTED_BASE(PlatformWindow), virtual void Restore() override; virtual void SetCursor(PlatformCursor cursor) override; virtual void MoveCursorTo(const gfx::Point& location) override; + virtual void ConfineCursorToBounds(const gfx::Rect& bounds) override; CR_BEGIN_MSG_MAP_EX(WinWindow) CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |