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

Unified Diff: ash/test/cursor_manager_test_api.cc

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 10 months 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 | « ash/test/cursor_manager_test_api.h ('k') | ash/test/shell_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd24b0db57c06272580331a3b9ebe83db3e993f5..d3cf8f16a11f3071f7e7abecbb57be450cc0b9fd 100644
--- a/ash/test/cursor_manager_test_api.cc
+++ b/ash/test/cursor_manager_test_api.cc
@@ -4,13 +4,17 @@
#include "ash/test/cursor_manager_test_api.h"
-#include "ash/wm/cursor_manager.h"
+#include "ash/shell.h"
+#include "ash/test/shell_test_api.h"
+#include "ash/wm/ash_native_cursor_manager.h"
#include "ash/wm/image_cursors.h"
+#include "ui/views/corewm/cursor_manager.h"
namespace ash {
namespace test {
-CursorManagerTestApi::CursorManagerTestApi(CursorManager* cursor_manager)
+CursorManagerTestApi::CursorManagerTestApi(
+ views::corewm::CursorManager* cursor_manager)
: cursor_manager_(cursor_manager) {
}
@@ -18,11 +22,13 @@ CursorManagerTestApi::~CursorManagerTestApi() {
}
gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() const {
- return cursor_manager_->GetCurrentCursor();
+ return static_cast<views::corewm::NativeCursorManagerDelegate*>(
+ cursor_manager_)->GetCurrentCursor();
}
float CursorManagerTestApi::GetDeviceScaleFactor() const {
- return cursor_manager_->image_cursors_->GetDeviceScaleFactor();
+ return ShellTestApi(Shell::GetInstance()).ash_native_cursor_manager()->
+ image_cursors_->GetDeviceScaleFactor();
}
} // namespace test
« no previous file with comments | « ash/test/cursor_manager_test_api.h ('k') | ash/test/shell_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698