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

Unified Diff: ui/aura/cursor_manager.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/cursor_delegate.h ('k') | ui/aura/cursor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/cursor_manager.h
diff --git a/ui/aura/cursor_manager.h b/ui/aura/cursor_manager.h
deleted file mode 100644
index 405099711271b85b449314c04eda96ba8bbaf0d2..0000000000000000000000000000000000000000
--- a/ui/aura/cursor_manager.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_AURA_CURSOR_MANAGER_H_
-#define UI_AURA_CURSOR_MANAGER_H_
-
-#include "base/basictypes.h"
-#include "ui/aura/aura_export.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace aura {
-class CursorDelegate;
-
-// This class controls the visibility and the type of the cursor.
-// The cursor type can be locked so that the type stays the same
-// until it's unlocked.
-class AURA_EXPORT CursorManager {
- public:
- CursorManager();
- ~CursorManager();
-
- void set_delegate(CursorDelegate* delegate) { delegate_ = delegate; }
-
- // Locks/Unlocks the cursor change.
- void LockCursor();
- void UnlockCursor();
-
- bool is_cursor_locked() const { return cursor_lock_count_ > 0; }
-
- void SetCursor(gfx::NativeCursor);
-
- // Shows or hides the cursor.
- void ShowCursor(bool show);
- bool cursor_visible() const { return cursor_visible_; }
-
- private:
- CursorDelegate* delegate_;
-
- // Number of times LockCursor() has been invoked without a corresponding
- // UnlockCursor().
- int cursor_lock_count_;
-
- // Set to true if UpdateCursor() is invoked while |cursor_lock_count_| == 0.
- bool did_cursor_change_;
-
- // Cursor to set once |cursor_lock_count_| is set to 0. Only valid if
- // |did_cursor_change_| is true.
- gfx::NativeCursor cursor_to_set_on_unlock_;
-
- // Is cursor visible?
- bool cursor_visible_;
-
- DISALLOW_COPY_AND_ASSIGN(CursorManager);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_CURSOR_MANAGER_H_
« no previous file with comments | « ui/aura/cursor_delegate.h ('k') | ui/aura/cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698