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

Side by Side Diff: ui/wm/core/cursor_manager.h

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | « ui/wm/core/compound_event_filter_unittest.cc ('k') | ui/wm/core/cursor_manager.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VIEWS_COREWM_CURSOR_MANAGER_H_ 5 #ifndef UI_WM_CORE_CURSOR_MANAGER_H_
6 #define UI_VIEWS_COREWM_CURSOR_MANAGER_H_ 6 #define UI_WM_CORE_CURSOR_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "ui/aura/client/cursor_client.h" 12 #include "ui/aura/client/cursor_client.h"
13 #include "ui/base/cursor/cursor.h" 13 #include "ui/base/cursor/cursor.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 #include "ui/gfx/point.h" 15 #include "ui/gfx/point.h"
16 #include "ui/views/corewm/native_cursor_manager_delegate.h" 16 #include "ui/wm/core/native_cursor_manager_delegate.h"
17 #include "ui/views/views_export.h" 17 #include "ui/wm/core/wm_core_export.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Display; 20 class Display;
21 } 21 }
22 22
23 namespace views { 23 namespace views {
24 namespace corewm { 24 namespace corewm {
25 25
26 namespace internal { 26 namespace internal {
27 class CursorState; 27 class CursorState;
28 } 28 }
29 29
30 class NativeCursorManager; 30 class NativeCursorManager;
31 31
32 // This class receives requests to change cursor properties, as well as 32 // This class receives requests to change cursor properties, as well as
33 // requests to queue any further changes until a later time. It sends changes 33 // requests to queue any further changes until a later time. It sends changes
34 // to the NativeCursorManager, which communicates back to us when these changes 34 // to the NativeCursorManager, which communicates back to us when these changes
35 // were made through the NativeCursorManagerDelegate interface. 35 // were made through the NativeCursorManagerDelegate interface.
36 class VIEWS_EXPORT CursorManager : public aura::client::CursorClient, 36 class WM_CORE_EXPORT CursorManager : public aura::client::CursorClient,
37 public NativeCursorManagerDelegate { 37 public NativeCursorManagerDelegate {
38 public: 38 public:
39 CursorManager(scoped_ptr<NativeCursorManager> delegate); 39 CursorManager(scoped_ptr<NativeCursorManager> delegate);
40 virtual ~CursorManager(); 40 virtual ~CursorManager();
41 41
42 // Overridden from aura::client::CursorClient: 42 // Overridden from aura::client::CursorClient:
43 virtual void SetCursor(gfx::NativeCursor) OVERRIDE; 43 virtual void SetCursor(gfx::NativeCursor) OVERRIDE;
44 virtual gfx::NativeCursor GetCursor() const OVERRIDE; 44 virtual gfx::NativeCursor GetCursor() const OVERRIDE;
45 virtual void ShowCursor() OVERRIDE; 45 virtual void ShowCursor() OVERRIDE;
46 virtual void HideCursor() OVERRIDE; 46 virtual void HideCursor() OVERRIDE;
47 virtual bool IsCursorVisible() const OVERRIDE; 47 virtual bool IsCursorVisible() const OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 scoped_ptr<internal::CursorState> state_on_unlock_; 82 scoped_ptr<internal::CursorState> state_on_unlock_;
83 83
84 ObserverList<aura::client::CursorClientObserver> observers_; 84 ObserverList<aura::client::CursorClientObserver> observers_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(CursorManager); 86 DISALLOW_COPY_AND_ASSIGN(CursorManager);
87 }; 87 };
88 88
89 } // namespace corewm 89 } // namespace corewm
90 } // namespace views 90 } // namespace views
91 91
92 #endif // UI_VIEWS_COREWM_CURSOR_MANAGER_H_ 92 #endif // UI_WM_CORE_CURSOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/compound_event_filter_unittest.cc ('k') | ui/wm/core/cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698