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 |
52 bool TestCursorClient::IsCursorVisible() const { | 59 bool TestCursorClient::IsCursorVisible() const { |
53 return visible_; | 60 return visible_; |
54 } | 61 } |
55 | 62 |
56 void TestCursorClient::EnableMouseEvents() { | 63 void TestCursorClient::EnableMouseEvents() { |
57 mouse_events_enabled_ = true; | 64 mouse_events_enabled_ = true; |
58 } | 65 } |
59 | 66 |
60 void TestCursorClient::DisableMouseEvents() { | 67 void TestCursorClient::DisableMouseEvents() { |
61 mouse_events_enabled_ = false; | 68 mouse_events_enabled_ = false; |
(...skipping 30 matching lines...) Expand all Loading... |
92 observers_.RemoveObserver(observer); | 99 observers_.RemoveObserver(observer); |
93 } | 100 } |
94 | 101 |
95 bool TestCursorClient::ShouldHideCursorOnKeyEvent( | 102 bool TestCursorClient::ShouldHideCursorOnKeyEvent( |
96 const ui::KeyEvent& event) const { | 103 const ui::KeyEvent& event) const { |
97 return true; | 104 return true; |
98 } | 105 } |
99 | 106 |
100 } // namespace test | 107 } // namespace test |
101 } // namespace aura | 108 } // namespace aura |
OLD | NEW |