diff options
author | rsadam@chromium.org <rsadam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 08:23:48 +0000 |
---|---|---|
committer | rsadam@chromium.org <rsadam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 08:23:48 +0000 |
commit | 807599c2e1a11326c1f5479b09d918ce3424ccee (patch) | |
tree | c14d211c2c796b55a1ff07048086a333a1555cb6 /ui/aura/test/test_cursor_client.h | |
parent | 8aa17949d080b4485c3f277172875e0d10c6d7c4 (diff) | |
download | chromium_src-807599c2e1a11326c1f5479b09d918ce3424ccee.zip chromium_src-807599c2e1a11326c1f5479b09d918ce3424ccee.tar.gz chromium_src-807599c2e1a11326c1f5479b09d918ce3424ccee.tar.bz2 |
Tests that CursorClient::ShouldHideOnKeyEvent() correctly overrides the default cursor hide-on-key-event behaviour.
This tests the behaviour introduced by r262299.
BUG=359324
Review URL: https://codereview.chromium.org/249713002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/test/test_cursor_client.h')
-rw-r--r-- | ui/aura/test/test_cursor_client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/aura/test/test_cursor_client.h b/ui/aura/test/test_cursor_client.h index 089827d..1372c33 100644 --- a/ui/aura/test/test_cursor_client.h +++ b/ui/aura/test/test_cursor_client.h @@ -26,6 +26,11 @@ class TestCursorClient : public aura::client::CursorClient { int calls_to_set_cursor() const { return calls_to_set_cursor_; } void reset_calls_to_set_cursor() { calls_to_set_cursor_ = 0; } + // Set whether or not to hide cursor on key events. + void set_should_hide_cursor_on_key_event(bool hide) { + should_hide_cursor_on_key_event_ = hide; + } + // Overridden from aura::client::CursorClient: virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; virtual gfx::NativeCursor GetCursor() const OVERRIDE; @@ -50,6 +55,7 @@ class TestCursorClient : public aura::client::CursorClient { private: bool visible_; + bool should_hide_cursor_on_key_event_; bool mouse_events_enabled_; int cursor_lock_count_; int calls_to_set_cursor_; |