summaryrefslogtreecommitdiffstats
path: root/ash/wm/cursor_delegate.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 00:54:19 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 00:54:19 +0000
commit4b8003cd9f0cdc48c681a5c69c51610771d25f32 (patch)
tree1322bf592dcf003d7c918401b6a0637fc75c4c19 /ash/wm/cursor_delegate.h
parent9746f9132e55a91d2ec3d866711277b874574743 (diff)
downloadchromium_src-4b8003cd9f0cdc48c681a5c69c51610771d25f32.zip
chromium_src-4b8003cd9f0cdc48c681a5c69c51610771d25f32.tar.gz
chromium_src-4b8003cd9f0cdc48c681a5c69c51610771d25f32.tar.bz2
Aura desktop: Show resize cursors again.
This moves CursorManager into ash/wm/ and makes it an implementation of a new CursorClient interface. It's really an implementation detail of ash. Then create a desktop version of this interface. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10692170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/cursor_delegate.h')
-rw-r--r--ash/wm/cursor_delegate.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/ash/wm/cursor_delegate.h b/ash/wm/cursor_delegate.h
new file mode 100644
index 0000000..05d901f
--- /dev/null
+++ b/ash/wm/cursor_delegate.h
@@ -0,0 +1,26 @@
+// 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 ASH_WM_CURSOR_DELEGATE_H_
+#define ASH_WM_CURSOR_DELEGATE_H_
+
+#include "ash/ash_export.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace ash {
+
+// This interface is implmented by a platform specific object that changes
+// the cursor's image and visibility.
+class ASH_EXPORT CursorDelegate {
+ public:
+ virtual void SetCursor(gfx::NativeCursor cursor) = 0;
+ virtual void ShowCursor(bool visible) = 0;
+
+ protected:
+ virtual ~CursorDelegate() {};
+};
+
+} // namespace aura
+
+#endif // ASH_WM_CURSOR_DELEGATE_H_