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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_cursor_manager.h

Issue 2932563002: Implement cursor changing on Mushrome (Closed)
Patch Set: oshima patch take 2 Created 3 years, 6 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
« no previous file with comments | « testing/buildbot/filters/ash_unittests_mus.filter ('k') | no next file » | 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 10 matching lines...) Expand all
21 class CursorLoader; 21 class CursorLoader;
22 } 22 }
23 23
24 namespace wm { 24 namespace wm {
25 class NativeCursorManagerDelegate; 25 class NativeCursorManagerDelegate;
26 } 26 }
27 27
28 namespace views { 28 namespace views {
29 29
30 // A NativeCursorManager that performs the desktop-specific setting of cursor 30 // A NativeCursorManager that performs the desktop-specific setting of cursor
31 // state. Similar to AshNativeCursorManager, it also communicates these changes 31 // state. Similar to NativeCursorManagerAsh, it also communicates these changes
32 // to all root windows. 32 // to all root windows.
33 class VIEWS_EXPORT DesktopNativeCursorManager 33 class VIEWS_EXPORT DesktopNativeCursorManager
34 : public wm::NativeCursorManager { 34 : public wm::NativeCursorManager {
35 public: 35 public:
36 DesktopNativeCursorManager(); 36 DesktopNativeCursorManager();
37 ~DesktopNativeCursorManager() override; 37 ~DesktopNativeCursorManager() override;
38 38
39 // Builds a cursor and sets the internal platform representation. The return 39 // Builds a cursor and sets the internal platform representation. The return
40 // value should not be cached. 40 // value should not be cached.
41 gfx::NativeCursor GetInitializedCursor(ui::CursorType type); 41 gfx::NativeCursor GetInitializedCursor(ui::CursorType type);
(...skipping 23 matching lines...) Expand all
65 Hosts hosts_; 65 Hosts hosts_;
66 66
67 std::unique_ptr<ui::CursorLoader> cursor_loader_; 67 std::unique_ptr<ui::CursorLoader> cursor_loader_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); 69 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager);
70 }; 70 };
71 71
72 } // namespace views 72 } // namespace views
73 73
74 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 74 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
OLDNEW
« no previous file with comments | « testing/buildbot/filters/ash_unittests_mus.filter ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698