summaryrefslogtreecommitdiffstats
path: root/ui/aura/test/test_cursor_client.h
diff options
context:
space:
mode:
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-21 03:38:38 +0000
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-21 03:38:38 +0000
commit9a9ac159cb23f40be409ce1ea8f029e9c7f9a174 (patch)
tree03bc2c76e5925b852a1ede28764204158e4b8f6b /ui/aura/test/test_cursor_client.h
parenta3dd39c8344f1a89ec9229a865a2c5eb5f8d0dbf (diff)
downloadchromium_src-9a9ac159cb23f40be409ce1ea8f029e9c7f9a174.zip
chromium_src-9a9ac159cb23f40be409ce1ea8f029e9c7f9a174.tar.gz
chromium_src-9a9ac159cb23f40be409ce1ea8f029e9c7f9a174.tar.bz2
Add logging to diagnose cursor visibility issues on Pixel
Add logging to determine if CompoundEventFilter::SetCursorVisibilityOnEvent() ever keeps a currently-invisible cursor invisible when it is called with |show| = true. I suspect this as a possible cause of issues 248231 and 267789. LOG(ERROR) was used instead of LOG(WARNING) because I am particularly interested in what happens at the login screen, and the logs in /var/log/ui/ do not log WARNINGs. I added IsCursorLocked() to the interface for CursorManager in order to prevent my new logging from appearing while in pointer lock (which is a case I do not care about). BUG=275826 Review URL: https://chromiumcodereview.appspot.com/22867023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/test/test_cursor_client.h')
-rw-r--r--ui/aura/test/test_cursor_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/aura/test/test_cursor_client.h b/ui/aura/test/test_cursor_client.h
index 62ccf7f..850ff68 100644
--- a/ui/aura/test/test_cursor_client.h
+++ b/ui/aura/test/test_cursor_client.h
@@ -29,6 +29,7 @@ class TestCursorClient : public aura::client::CursorClient {
virtual void SetDisplay(const gfx::Display& display) OVERRIDE;
virtual void LockCursor() OVERRIDE;
virtual void UnlockCursor() OVERRIDE;
+ virtual bool IsCursorLocked() const OVERRIDE;
virtual void AddObserver(
aura::client::CursorClientObserver* observer) OVERRIDE;
virtual void RemoveObserver(
@@ -37,6 +38,7 @@ class TestCursorClient : public aura::client::CursorClient {
private:
bool visible_;
bool mouse_events_enabled_;
+ int cursor_lock_count_;
ObserverList<aura::client::CursorClientObserver> observers_;
aura::Window* root_window_;