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

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

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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698