summaryrefslogtreecommitdiffstats
path: root/ash/test/cursor_manager_test_api.cc
diff options
context:
space:
mode:
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 08:28:41 +0000
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 08:28:41 +0000
commitfdb0c4b70e38d4e22132de9bf62d2a2a8b394b79 (patch)
tree3ab5fd89de4901998f159aab60c60a759254d79f /ash/test/cursor_manager_test_api.cc
parent4aa67549b1fad9188397e64bd7ca2358d69cde35 (diff)
downloadchromium_src-fdb0c4b70e38d4e22132de9bf62d2a2a8b394b79.zip
chromium_src-fdb0c4b70e38d4e22132de9bf62d2a2a8b394b79.tar.gz
chromium_src-fdb0c4b70e38d4e22132de9bf62d2a2a8b394b79.tar.bz2
Cleanup of CursorClient and NativeCursorDelegate interfaces
Remove some duplicated/unnecessary accessors from NativeCursorDelegate, and move some to CursorClient. BUG=328212 TEST=None (cleanup patch only, no change in functionality) Review URL: https://codereview.chromium.org/98203003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test/cursor_manager_test_api.cc')
-rw-r--r--ash/test/cursor_manager_test_api.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/ash/test/cursor_manager_test_api.cc b/ash/test/cursor_manager_test_api.cc
index e93b59e..3ed0226 100644
--- a/ash/test/cursor_manager_test_api.cc
+++ b/ash/test/cursor_manager_test_api.cc
@@ -22,19 +22,17 @@ CursorManagerTestApi::CursorManagerTestApi(
CursorManagerTestApi::~CursorManagerTestApi() {
}
+// TODO(tdanderson): CursorManagerTestApi may no longer be needed.
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 {