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

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: Add dependency to wm::test_support from ash::unittests 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
« no previous file with comments | « ui/wm/core/cursor_manager_unittest.cc ('k') | ui/wm/test/testing_cursor_client_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // CursorClientObserver for testing.
11 class TestingCursorClientObserver : public aura::client::CursorClientObserver {
12 public:
13 TestingCursorClientObserver();
14 void reset();
15
16 bool is_cursor_visible() const { return cursor_visibility_; }
17 bool did_visibility_change() const { return did_visibility_change_; }
18 ui::CursorSetType cursor_set() const { return cursor_set_; }
19 bool did_cursor_set_change() const { return did_cursor_set_change_; }
20
21 // Overridden from aura::client::CursorClientObserver:
22 void OnCursorVisibilityChanged(bool is_visible) override;
23 void OnCursorSetChanged(ui::CursorSetType cursor_set) override;
24
25 private:
26 bool cursor_visibility_;
27 bool did_visibility_change_;
28 ui::CursorSetType cursor_set_;
29 bool did_cursor_set_change_;
30
31 DISALLOW_COPY_AND_ASSIGN(TestingCursorClientObserver);
32 };
33
34 } // namespace wm
OLDNEW
« no previous file with comments | « ui/wm/core/cursor_manager_unittest.cc ('k') | ui/wm/test/testing_cursor_client_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698