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

Side by Side Diff: ash/wm/cursor_manager.cc

Issue 10692170: Aura desktop: Show resize cursors again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/cursor_manager.h ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/cursor_manager.h ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698