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

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

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
« no previous file with comments | « ui/aura/test/test_cursor_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_cursor_client.cc
diff --git a/ui/aura/test/test_cursor_client.cc b/ui/aura/test/test_cursor_client.cc
index 6c6dc41f9645d14baaa1c3141a7c591adcdf2e40..f0411ef04b86cdd76af4e0251f62c11fce7ccbc0 100644
--- a/ui/aura/test/test_cursor_client.cc
+++ b/ui/aura/test/test_cursor_client.cc
@@ -13,6 +13,7 @@ TestCursorClient::TestCursorClient(aura::Window* root_window)
: visible_(true),
mouse_events_enabled_(true),
cursor_lock_count_(0),
+ calls_to_set_cursor_(0),
root_window_(root_window) {
client::SetCursorClient(root_window, this);
}
@@ -22,6 +23,7 @@ TestCursorClient::~TestCursorClient() {
}
void TestCursorClient::SetCursor(gfx::NativeCursor cursor) {
+ calls_to_set_cursor_++;
}
gfx::NativeCursor TestCursorClient::GetCursor() const {
« no previous file with comments | « ui/aura/test/test_cursor_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698