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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.h

Issue 2541163006: Wire up CursorManager for DesktopWindowTreeHostMus (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.h
diff --git a/ui/views/mus/desktop_window_tree_host_mus.h b/ui/views/mus/desktop_window_tree_host_mus.h
index eb0e693008810704730f5e484d8d5f556287c7ef..b988aeee1884761830bb0933c8d70d24d61504bc 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -16,6 +16,10 @@
#include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
#include "ui/views/widget/widget.h"
+namespace wm {
+class CursorManager;
+}
+
namespace views {
class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
@@ -102,6 +106,7 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
bool IsTranslucentWindowOpacitySupported() const override;
void SizeConstraintsChanged() override;
bool ShouldUpdateWindowTransparency() const override;
+ bool ShouldUseDesktopNativeCursorManager() const override;
// MusClientObserver:
void OnWindowManagerFrameValuesChanged() override;
@@ -131,6 +136,8 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
bool is_active_ = false;
+ std::unique_ptr<wm::CursorManager> cursor_manager_;
+
// Used so that Close() isn't immediate.
base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698