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

Unified Diff: ui/aura/desktop/desktop_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/cursor_manager.cc ('k') | ui/aura/desktop/desktop_cursor_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop/desktop_cursor_client.h
diff --git a/ui/aura/desktop/desktop_cursor_client.h b/ui/aura/desktop/desktop_cursor_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4315ed62a724e87009305e3a861ebff7c812464
--- /dev/null
+++ b/ui/aura/desktop/desktop_cursor_client.h
@@ -0,0 +1,36 @@
+// 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_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
+#define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
+
+#include "base/compiler_specific.h"
+#include "ui/aura/aura_export.h"
+
+#include "ui/aura/client/cursor_client.h"
+
+namespace aura {
+class RootWindow;
+
+// A CursorClient that interacts with only one RootWindow. (Unlike the one in
+// ash, which interacts with all the RootWindows.)
+class AURA_EXPORT DesktopCursorClient : public client::CursorClient {
+ public:
+ explicit DesktopCursorClient(aura::RootWindow* window);
+ virtual ~DesktopCursorClient();
+
+ // Overridden from client::CursorClient:
+ virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
+ virtual void ShowCursor(bool show) OVERRIDE;
+ virtual bool IsCursorVisible() const OVERRIDE;
+
+ private:
+ aura::RootWindow* root_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
« no previous file with comments | « ui/aura/cursor_manager.cc ('k') | ui/aura/desktop/desktop_cursor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698