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

Unified Diff: ui/views/widget/desktop_aura/desktop_cursor_client.h

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lables Created 7 years, 10 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/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_cursor_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_cursor_client.h
diff --git a/ui/views/widget/desktop_aura/desktop_cursor_client.h b/ui/views/widget/desktop_aura/desktop_cursor_client.h
index 18116969dfda8162ea83acd541b22ce413cc7b67..7aaf071f39e80eca668da6d3902d7e0b39bb4381 100644
--- a/ui/views/widget/desktop_aura/desktop_cursor_client.h
+++ b/ui/views/widget/desktop_aura/desktop_cursor_client.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "ui/aura/client/cursor_client.h"
+#include "ui/views/corewm/cursor_controller.h"
#include "ui/views/views_export.h"
namespace aura {
@@ -22,32 +23,24 @@ namespace views {
// A CursorClient that interacts with only one RootWindow. (Unlike the one in
// ash, which interacts with all the RootWindows.)
-class VIEWS_EXPORT DesktopCursorClient : public aura::client::CursorClient {
+class VIEWS_EXPORT DesktopCursorClient
Ben Goodger (Google) 2013/02/15 23:02:08 I think I'd prefer the model here to follow the on
+ : public views::corewm::CursorController {
public:
explicit DesktopCursorClient(aura::RootWindow* window);
virtual ~DesktopCursorClient();
// Overridden from client::CursorClient:
- virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
- virtual void ShowCursor() OVERRIDE;
- virtual void HideCursor() OVERRIDE;
- virtual bool IsCursorVisible() const OVERRIDE;
- virtual void EnableMouseEvents() OVERRIDE;
- virtual void DisableMouseEvents() OVERRIDE;
- virtual bool IsMouseEventsEnabled() const OVERRIDE;
virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
- virtual void LockCursor() OVERRIDE;
- virtual void UnlockCursor() OVERRIDE;
private:
- void SetCursorVisibility(bool visible);
+ // Overridden from views::corewm::CursorController:
+ virtual void SetCursorInternal(gfx::NativeCursor cursor) OVERRIDE;
+ virtual void SetCursorVisibility(bool visible) OVERRIDE;
+ virtual void SetMouseEventsEnabled(bool enabled) OVERRIDE;
aura::RootWindow* root_window_;
scoped_ptr<ui::CursorLoader> cursor_loader_;
- gfx::NativeCursor current_cursor_;
- bool cursor_visible_;
-
DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient);
};
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_cursor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698