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 111043002: Cursor state should be global for desktop Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test added 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: 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_;
}

Powered by Google App Engine
This is Rietveld 408576698