Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: ui/aura/test/test_cursor_client.h

Issue 25336003: Use root window's coordinates when updating cursor in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win-specific hack removed Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/test/test_cursor_client.h
diff --git a/ui/aura/test/test_cursor_client.h b/ui/aura/test/test_cursor_client.h
index 6bfab522bd4d45645b4d852518fed43f0c29f971..2d152de3e4ddde4ada3a5f4cea2d3a9c3bbb9536 100644
--- a/ui/aura/test/test_cursor_client.h
+++ b/ui/aura/test/test_cursor_client.h
@@ -18,6 +18,10 @@ class TestCursorClient : public aura::client::CursorClient {
explicit TestCursorClient(aura::Window* root_window);
virtual ~TestCursorClient();
+ // Used to track the number of times SetCursor() was called.
+ int calls_to_set_cursor() const { return calls_to_set_cursor_; }
+ void reset_calls_to_set_cursor() { calls_to_set_cursor_ = 0; }
+
// Overridden from aura::client::CursorClient:
virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
virtual gfx::NativeCursor GetCursor() const OVERRIDE;
@@ -44,6 +48,7 @@ class TestCursorClient : public aura::client::CursorClient {
bool visible_;
bool mouse_events_enabled_;
int cursor_lock_count_;
+ int calls_to_set_cursor_;
ObserverList<aura::client::CursorClientObserver> observers_;
aura::Window* root_window_;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | ui/aura/test/test_cursor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698