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

Unified Diff: ash/test/cursor_manager_test_api.cc

Issue 92413002: Cursor state should be global for all CursorManagers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for review 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: 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 e93b59eca7d80b770225aee6c454f338a3ad8435..27c8577457ac1ec829951e7159f1be5a5e0c54de 100644
--- a/ash/test/cursor_manager_test_api.cc
+++ b/ash/test/cursor_manager_test_api.cc
@@ -22,19 +22,18 @@ CursorManagerTestApi::CursorManagerTestApi(
CursorManagerTestApi::~CursorManagerTestApi() {
}
+// TODO(tdanderson): CursorManagerTestApi should no longer be required
+// once the refactoring of CursorManager is complete.
float CursorManagerTestApi::GetCurrentScale() const {
- return static_cast<views::corewm::NativeCursorManagerDelegate*>(
- cursor_manager_)->GetCurrentScale();
+ return cursor_manager_->GetScale();
}
ui::CursorSetType CursorManagerTestApi::GetCurrentCursorSet() const {
- return static_cast<views::corewm::NativeCursorManagerDelegate*>(
- cursor_manager_)->GetCurrentCursorSet();
+ return cursor_manager_->GetCursorSet();
}
gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() const {
- return static_cast<views::corewm::NativeCursorManagerDelegate*>(
- cursor_manager_)->GetCurrentCursor();
+ return cursor_manager_->GetCursor();
}
gfx::Display CursorManagerTestApi::GetDisplay() const {

Powered by Google App Engine
This is Rietveld 408576698