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

Unified Diff: ui/aura/client/cursor_client.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/aura.gyp ('k') | ui/aura/client/cursor_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/cursor_client.h
diff --git a/ui/aura/client/cursor_client.h b/ui/aura/client/cursor_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..418c559dad63b118b9f621cf36b22a40dee626c3
--- /dev/null
+++ b/ui/aura/client/cursor_client.h
@@ -0,0 +1,39 @@
+// 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_CLIENT_CURSOR_CLIENT_H_
+#define UI_AURA_CLIENT_CURSOR_CLIENT_H_
+
+#include "ui/aura/aura_export.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace aura {
+class Window;
+namespace client {
+
+// An interface that receives cursor change events.
+class AURA_EXPORT CursorClient {
+ public:
+ // Notes that |window| has requested the change to |cursor|.
+ virtual void SetCursor(gfx::NativeCursor cursor) = 0;
+
+ // Changes the visibility of the cursor.
+ virtual void ShowCursor(bool show) = 0;
+
+ // Gets whether the cursor is visible.
+ virtual bool IsCursorVisible() const = 0;
+
+ protected:
+ virtual ~CursorClient() {}
+};
+
+// Sets/Gets the activation client for the specified window.
+AURA_EXPORT void SetCursorClient(Window* window,
+ CursorClient* client);
+AURA_EXPORT CursorClient* GetCursorClient(Window* window);
+
+} // namespace client
+} // namespace aura
+
+#endif // UI_AURA_CLIENT_CURSOR_CLIENT_H_
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/cursor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698