Chromium Code Reviews| 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/aura/client/cursor_client_observer.h" | |
| 6 #include "ui/wm/core/cursor_manager.h" | |
| 7 | |
| 8 namespace wm { | |
| 9 | |
| 10 class TestingCursorClientObserver : public aura::client::CursorClientObserver { | |
|
sky
2016/06/28 16:39:37
Add description.
| |
| 11 public: | |
| 12 TestingCursorClientObserver(); | |
| 13 void reset(); | |
| 14 | |
| 15 bool is_cursor_visible() const { return cursor_visibility_; } | |
| 16 bool did_visibility_change() const { return did_visibility_change_; } | |
| 17 ui::CursorSetType cursor_set() const { return cursor_set_; } | |
| 18 bool did_cursor_set_change() const { return did_cursor_set_change_; } | |
| 19 | |
| 20 // Overridden from aura::client::CursorClientObserver: | |
| 21 void OnCursorVisibilityChanged(bool is_visible) override; | |
| 22 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; | |
| 23 | |
| 24 private: | |
| 25 bool cursor_visibility_; | |
| 26 bool did_visibility_change_; | |
| 27 ui::CursorSetType cursor_set_; | |
| 28 bool did_cursor_set_change_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(TestingCursorClientObserver); | |
| 31 }; | |
| 32 | |
| 33 } // namespace wm | |
| OLD | NEW |