summaryrefslogtreecommitdiffstats
path: root/ash/test/cursor_manager_test_api.cc
diff options
context:
space:
mode:
authoryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-26 12:40:22 +0000
committeryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-26 12:40:22 +0000
commit2a08226f8247ffd016fe81fc6f53a6936542e4df (patch)
tree4da3c688e613c65127d9c25b98a661fdf8558d1a /ash/test/cursor_manager_test_api.cc
parentaaf82bd404f8112e488e33971532d235fe96c3a1 (diff)
downloadchromium_src-2a08226f8247ffd016fe81fc6f53a6936542e4df.zip
chromium_src-2a08226f8247ffd016fe81fc6f53a6936542e4df.tar.gz
chromium_src-2a08226f8247ffd016fe81fc6f53a6936542e4df.tar.bz2
Add a function to change the mouse cursor icon set to aura/ash.
This patch implements a function to change the asset set of mouse cursor icons, and adds the method of changing the cursor set into CursorManager. This feature will be used with Large Cursor feature. Currently, it just enlarges the normal cursor assets. This patch makes it use the large-size cursor assets instead. The large assets will be added in an another patch after this patch is committed. BUG=247254 TEST=manuallly. Tests pass. Review URL: https://chromiumcodereview.appspot.com/22319004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test/cursor_manager_test_api.cc')
-rw-r--r--ash/test/cursor_manager_test_api.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/test/cursor_manager_test_api.cc b/ash/test/cursor_manager_test_api.cc
index 2fc569c..e93b59e 100644
--- a/ash/test/cursor_manager_test_api.cc
+++ b/ash/test/cursor_manager_test_api.cc
@@ -27,6 +27,11 @@ float CursorManagerTestApi::GetCurrentScale() const {
cursor_manager_)->GetCurrentScale();
}
+ui::CursorSetType CursorManagerTestApi::GetCurrentCursorSet() const {
+ return static_cast<views::corewm::NativeCursorManagerDelegate*>(
+ cursor_manager_)->GetCurrentCursorSet();
+}
+
gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() const {
return static_cast<views::corewm::NativeCursorManagerDelegate*>(
cursor_manager_)->GetCurrentCursor();