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

Unified Diff: ui/aura/test/test_cursor_client.cc

Issue 92413002: Cursor state should be global for all CursorManagers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed 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
« no previous file with comments | « ui/aura/test/test_cursor_client.h ('k') | ui/views/corewm/cursor_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_cursor_client.cc
diff --git a/ui/aura/test/test_cursor_client.cc b/ui/aura/test/test_cursor_client.cc
index edf8ca071346ec0d6717835f22f9bf3f72d20bda..6c6dc41f9645d14baaa1c3141a7c591adcdf2e40 100644
--- a/ui/aura/test/test_cursor_client.cc
+++ b/ui/aura/test/test_cursor_client.cc
@@ -24,6 +24,10 @@ TestCursorClient::~TestCursorClient() {
void TestCursorClient::SetCursor(gfx::NativeCursor cursor) {
}
+gfx::NativeCursor TestCursorClient::GetCursor() const {
+ return ui::kCursorNull;
+}
+
void TestCursorClient::ShowCursor() {
visible_ = true;
FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_,
@@ -39,9 +43,17 @@ void TestCursorClient::HideCursor() {
void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) {
}
+ui::CursorSetType TestCursorClient::GetCursorSet() const {
+ return ui::CURSOR_SET_NORMAL;
+}
+
void TestCursorClient::SetScale(float scale) {
}
+float TestCursorClient::GetScale() const {
+ return 1.f;
+}
+
bool TestCursorClient::IsCursorVisible() const {
return visible_;
}
« no previous file with comments | « ui/aura/test/test_cursor_client.h ('k') | ui/views/corewm/cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698