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

Side by Side Diff: ui/aura/desktop/desktop_cursor_client.h

Issue 10967062: linux-aura: Fix setting the default X cursors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/aura/desktop/desktop_cursor_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 5 #ifndef UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
11 #include "ui/aura/client/cursor_client.h"
10 12
11 #include "ui/aura/client/cursor_client.h" 13 namespace ui {
14 class CursorLoader;
15 }
12 16
13 namespace aura { 17 namespace aura {
14 class RootWindow; 18 class RootWindow;
15 19
16 // A CursorClient that interacts with only one RootWindow. (Unlike the one in 20 // A CursorClient that interacts with only one RootWindow. (Unlike the one in
17 // ash, which interacts with all the RootWindows.) 21 // ash, which interacts with all the RootWindows.)
18 class AURA_EXPORT DesktopCursorClient : public client::CursorClient { 22 class AURA_EXPORT DesktopCursorClient : public client::CursorClient {
19 public: 23 public:
20 explicit DesktopCursorClient(aura::RootWindow* window); 24 explicit DesktopCursorClient(aura::RootWindow* window);
21 virtual ~DesktopCursorClient(); 25 virtual ~DesktopCursorClient();
22 26
23 // Overridden from client::CursorClient: 27 // Overridden from client::CursorClient:
24 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 28 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
25 virtual void ShowCursor(bool show) OVERRIDE; 29 virtual void ShowCursor(bool show) OVERRIDE;
26 virtual bool IsCursorVisible() const OVERRIDE; 30 virtual bool IsCursorVisible() const OVERRIDE;
27 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; 31 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
28 32
29 private: 33 private:
30 aura::RootWindow* root_window_; 34 aura::RootWindow* root_window_;
35 scoped_ptr<ui::CursorLoader> cursor_loader_;
31 36
32 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); 37 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient);
33 }; 38 };
34 39
35 } // namespace aura 40 } // namespace aura
36 41
37 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 42 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop/desktop_cursor_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698