OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/cursor_manager.h" | 5 #include "ash/wm/cursor_manager.h" |
6 | 6 |
| 7 #include "ash/wm/cursor_delegate.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "ui/aura/cursor_delegate.h" | |
9 #include "ui/aura/env.h" | 9 #include "ui/aura/env.h" |
10 | 10 |
11 namespace aura { | 11 namespace ash { |
12 | 12 |
13 CursorManager::CursorManager() | 13 CursorManager::CursorManager() |
14 : delegate_(NULL), | 14 : delegate_(NULL), |
15 cursor_lock_count_(0), | 15 cursor_lock_count_(0), |
16 did_cursor_change_(false), | 16 did_cursor_change_(false), |
17 cursor_to_set_on_unlock_(0), | 17 cursor_to_set_on_unlock_(0), |
18 cursor_visible_(true) { | 18 cursor_visible_(true) { |
19 } | 19 } |
20 | 20 |
21 CursorManager::~CursorManager() { | 21 CursorManager::~CursorManager() { |
(...skipping 26 matching lines...) Expand all Loading... |
48 did_cursor_change_ = true; | 48 did_cursor_change_ = true; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 void CursorManager::ShowCursor(bool show) { | 52 void CursorManager::ShowCursor(bool show) { |
53 cursor_visible_ = show; | 53 cursor_visible_ = show; |
54 if (delegate_) | 54 if (delegate_) |
55 delegate_->ShowCursor(show); | 55 delegate_->ShowCursor(show); |
56 } | 56 } |
57 | 57 |
58 } // namespace aura | 58 bool CursorManager::IsCursorVisible() const { |
| 59 return cursor_visible_; |
| 60 } |
| 61 |
| 62 } // namespace ash |
OLD | NEW |