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

Unified Diff: ash/test/cursor_manager_test_api.cc

Issue 11412315: Make the cursor have separate mode for disabled mouse events and invisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 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: ash/test/cursor_manager_test_api.cc
diff --git a/ash/test/cursor_manager_test_api.cc b/ash/test/cursor_manager_test_api.cc
index e992f9ca016242fbc432c064f0e62eb9335ff8cc..6a9651e30822d5f5373afd2c3cb79f5b832edf1e 100644
--- a/ash/test/cursor_manager_test_api.cc
+++ b/ash/test/cursor_manager_test_api.cc
@@ -17,11 +17,15 @@ CursorManagerTestApi::CursorManagerTestApi(CursorManager* cursor_manager)
CursorManagerTestApi::~CursorManagerTestApi() {
}
-gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() {
+gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() const {
return cursor_manager_->current_cursor_;
}
-float CursorManagerTestApi::GetDeviceScaleFactor() {
+bool CursorManagerTestApi::GetEnabled() const {
+ return cursor_manager_->cursor_enabled_;
+}
+
+float CursorManagerTestApi::GetDeviceScaleFactor() const {
return cursor_manager_->image_cursors_->GetDeviceScaleFactor();
}

Powered by Google App Engine
This is Rietveld 408576698