OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/wm/test/testing_cursor_client_observer.h" |
| 6 |
| 7 namespace wm { |
| 8 |
| 9 TestingCursorClientObserver::TestingCursorClientObserver() |
| 10 : cursor_visibility_(false), |
| 11 did_visibility_change_(false), |
| 12 cursor_set_(ui::CURSOR_SET_NORMAL), |
| 13 did_cursor_set_change_(false) {} |
| 14 |
| 15 void TestingCursorClientObserver::reset() { |
| 16 cursor_visibility_ = did_visibility_change_ = false; |
| 17 cursor_set_ = ui::CURSOR_SET_NORMAL; |
| 18 did_cursor_set_change_ = false; |
| 19 } |
| 20 |
| 21 void TestingCursorClientObserver::OnCursorVisibilityChanged(bool is_visible) { |
| 22 cursor_visibility_ = is_visible; |
| 23 did_visibility_change_ = true; |
| 24 } |
| 25 |
| 26 void TestingCursorClientObserver::OnCursorSetChanged( |
| 27 ui::CursorSetType cursor_set) { |
| 28 cursor_set_ = cursor_set; |
| 29 did_cursor_set_change_ = true; |
| 30 } |
| 31 |
| 32 } // namespace wm |
OLD | NEW |