diff options
author | sheckylin@chromium.org <sheckylin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 15:00:14 +0000 |
---|---|---|
committer | sheckylin@chromium.org <sheckylin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 15:00:14 +0000 |
commit | 33f0eccc6c8fa1616e19fbceeac51c7aed67c9e5 (patch) | |
tree | 3e3c88cc99e675dd55f98bdb95fdc17a6db80307 /ui/aura/root_window.cc | |
parent | 681739f982a5e4fb720959a5ffb44980253106dc (diff) | |
download | chromium_src-33f0eccc6c8fa1616e19fbceeac51c7aed67c9e5.zip chromium_src-33f0eccc6c8fa1616e19fbceeac51c7aed67c9e5.tar.gz chromium_src-33f0eccc6c8fa1616e19fbceeac51c7aed67c9e5.tar.bz2 |
Handling cursor visibility changing events for ChromeOS
The CL does 5 things:
1. A handler in RootWindowHost that will be called whenever cursor
visibility is changed.
2. An utility function in RootWindowHostLinux that can be used to
set XInput device properties.
3. Use 1) and 2) to temporarily pause trackpad tap-to-click feature
when the cursor is hidden.
4. Add a cache class that caches X input device lists to minimize
round-trip time to X server for device list queries.
5. Refactor around the places where XListInputDevices/XIQueryDevice
queries are used.
Contributed by sheckylin@chromium.org
BUG=chromium:156697,chrome-os-partner:14085
TEST=Tested on link. "Tap paused" was successfully set when visibility
changed.
Change-Id: Ia5c62f821c80efc973e3b1ce54a467b674b466a4
Review URL: https://chromiumcodereview.appspot.com/11316074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.cc')
-rw-r--r-- | ui/aura/root_window.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc index 33347cb..4c7c6dd 100644 --- a/ui/aura/root_window.cc +++ b/ui/aura/root_window.cc @@ -210,6 +210,7 @@ void RootWindow::OnCursorVisibilityChanged(bool show) { // cursor state. Env::GetInstance()->SetCursorShown(show); PostMouseMoveEventAfterWindowChange(); + host_->OnCursorVisibilityChanged(show); } void RootWindow::MoveCursorTo(const gfx::Point& location_in_dip) { |