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

Unified Diff: ash/wm/cursor_manager.h

Issue 10965020: Fix cursor getting invisible after moving a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « ash/test/cursor_manager_test_api.cc ('k') | ash/wm/cursor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/cursor_manager.h
diff --git a/ash/wm/cursor_manager.h b/ash/wm/cursor_manager.h
index f5b5548b8684b4e300c1a8619684e82b543f5b71..f2b857e8c71143095a348e06f1e6d22594399f6c 100644
--- a/ash/wm/cursor_manager.h
+++ b/ash/wm/cursor_manager.h
@@ -5,21 +5,26 @@
#ifndef ASH_WM_CURSOR_MANAGER_H_
#define ASH_WM_CURSOR_MANAGER_H_
+#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
-#include "ui/aura/aura_export.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/gfx/native_widget_types.h"
namespace ash {
+
+namespace test {
+class CursorManagerTestApi;
+}
+
class CursorDelegate;
class ImageCursors;
// 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 CursorManager : public aura::client::CursorClient {
+class ASH_EXPORT CursorManager : public aura::client::CursorClient {
public:
CursorManager();
virtual ~CursorManager();
@@ -42,6 +47,8 @@ class CursorManager : public aura::client::CursorClient {
virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
private:
+ friend class test::CursorManagerTestApi;
+
void SetCursorInternal(gfx::NativeCursor cursor);
CursorDelegate* delegate_;
@@ -68,6 +75,6 @@ class CursorManager : public aura::client::CursorClient {
DISALLOW_COPY_AND_ASSIGN(CursorManager);
};
-} // namespace aura
+} // namespace ash
#endif // UI_AURA_CURSOR_MANAGER_H_
« no previous file with comments | « ash/test/cursor_manager_test_api.cc ('k') | ash/wm/cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698