| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/aura/test/test_cursor_client.h" | 5 #include "ui/aura/test/test_cursor_client.h" |
| 6 | 6 |
| 7 #include "ui/aura/client/cursor_client_observer.h" | 7 #include "ui/aura/client/cursor_client_observer.h" |
| 8 | 8 |
| 9 namespace aura { | 9 namespace aura { |
| 10 namespace test { | 10 namespace test { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 OnCursorVisibilityChanged(false)); | 42 OnCursorVisibilityChanged(false)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) { | 45 void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 ui::CursorSetType TestCursorClient::GetCursorSet() const { | 48 ui::CursorSetType TestCursorClient::GetCursorSet() const { |
| 49 return ui::CURSOR_SET_NORMAL; | 49 return ui::CURSOR_SET_NORMAL; |
| 50 } | 50 } |
| 51 | 51 |
| 52 void TestCursorClient::SetScale(float scale) { | |
| 53 } | |
| 54 | |
| 55 float TestCursorClient::GetScale() const { | |
| 56 return 1.f; | |
| 57 } | |
| 58 | |
| 59 bool TestCursorClient::IsCursorVisible() const { | 52 bool TestCursorClient::IsCursorVisible() const { |
| 60 return visible_; | 53 return visible_; |
| 61 } | 54 } |
| 62 | 55 |
| 63 void TestCursorClient::EnableMouseEvents() { | 56 void TestCursorClient::EnableMouseEvents() { |
| 64 mouse_events_enabled_ = true; | 57 mouse_events_enabled_ = true; |
| 65 } | 58 } |
| 66 | 59 |
| 67 void TestCursorClient::DisableMouseEvents() { | 60 void TestCursorClient::DisableMouseEvents() { |
| 68 mouse_events_enabled_ = false; | 61 mouse_events_enabled_ = false; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 99 observers_.RemoveObserver(observer); | 92 observers_.RemoveObserver(observer); |
| 100 } | 93 } |
| 101 | 94 |
| 102 bool TestCursorClient::ShouldHideCursorOnKeyEvent( | 95 bool TestCursorClient::ShouldHideCursorOnKeyEvent( |
| 103 const ui::KeyEvent& event) const { | 96 const ui::KeyEvent& event) const { |
| 104 return true; | 97 return true; |
| 105 } | 98 } |
| 106 | 99 |
| 107 } // namespace test | 100 } // namespace test |
| 108 } // namespace aura | 101 } // namespace aura |
| OLD | NEW |