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

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

Issue 751063008: Fix mouse cursor during drag and drop after HTML 5 pointer lock on Desktop Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc ('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 <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
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 AshNativeCursorManager, 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 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater); 37 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater);
38 ~DesktopNativeCursorManager() override; 38 ~DesktopNativeCursorManager() override;
39 39
40 // Builds a cursor and sets the internal platform representation. 40 // Builds a cursor and sets the internal platform representation. The return
41 // value should not be cached.
41 gfx::NativeCursor GetInitializedCursor(int type); 42 gfx::NativeCursor GetInitializedCursor(int type);
42 43
43 // Adds |host| to the set |hosts_|. 44 // Adds |host| to the set |hosts_|.
44 void AddHost(aura::WindowTreeHost* host); 45 void AddHost(aura::WindowTreeHost* host);
45 46
46 // Removes |host| from the set |hosts_|. 47 // Removes |host| from the set |hosts_|.
47 void RemoveHost(aura::WindowTreeHost* host); 48 void RemoveHost(aura::WindowTreeHost* host);
48 49
49 private: 50 private:
50 // Overridden from wm::NativeCursorManager: 51 // Overridden from wm::NativeCursorManager:
(...skipping 16 matching lines...) Expand all
67 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_; 68 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_;
68 scoped_ptr<ui::CursorLoader> cursor_loader_; 69 scoped_ptr<ui::CursorLoader> cursor_loader_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); 71 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager);
71 }; 72 };
72 73
73 } // namespace views 74 } // namespace views
74 75
75 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 76 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
76 77
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698