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

Unified Diff: ui/views/widget/desktop_native_widget_helper_aura.cc

Issue 10692170: Aura desktop: Show resize cursors again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura compile Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_native_widget_helper_aura.cc
diff --git a/ui/views/widget/desktop_native_widget_helper_aura.cc b/ui/views/widget/desktop_native_widget_helper_aura.cc
index ad68fafa168ebc20d0d6a8b85db2a93de3a5afdf..3fd78c893e736a08a5b6ef6c6a37121da8c7bfd2 100644
--- a/ui/views/widget/desktop_native_widget_helper_aura.cc
+++ b/ui/views/widget/desktop_native_widget_helper_aura.cc
@@ -6,8 +6,8 @@
#include "ui/aura/client/dispatcher_client.h"
#include "ui/aura/client/screen_position_client.h"
-#include "ui/aura/cursor_manager.h"
#include "ui/aura/desktop/desktop_activation_client.h"
+#include "ui/aura/desktop/desktop_cursor_client.h"
#include "ui/aura/desktop/desktop_dispatcher_client.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/root_window.h"
@@ -125,8 +125,6 @@ void DesktopNativeWidgetHelperAura::PreInitialize(
// will probably be SetBounds()ed soon.
bounds.set_size(gfx::Size(100, 100));
}
- // TODO(erg): Implement aura::CursorManager::Delegate to control
- // cursor's shape and visibility.
aura::FocusManager* focus_manager = NULL;
aura::DesktopActivationClient* activation_client = NULL;
@@ -157,6 +155,9 @@ void DesktopNativeWidgetHelperAura::PreInitialize(
capture_client_.reset(
new aura::shared::RootWindowCaptureClient(root_window_.get()));
+ cursor_client_.reset(new aura::DesktopCursorClient(root_window_.get()));
+ aura::client::SetCursorClient(root_window_.get(), cursor_client_.get());
+
#if defined(USE_X11)
x11_window_event_filter_.reset(
new X11WindowEventFilter(root_window_.get(), activation_client, widget_));
« ui/aura/client/cursor_client.h ('K') | « ui/views/widget/desktop_native_widget_helper_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698