Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: ui/wm/test/testing_cursor_client_observer.h

Issue 2071553002: Initial support of large mouse cursor on Exosphere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 months 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698