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

Unified Diff: ash/drag_drop/drag_drop_controller.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: ash/drag_drop/drag_drop_controller.cc
diff --git a/ash/drag_drop/drag_drop_controller.cc b/ash/drag_drop/drag_drop_controller.cc
index dcc102910f9cc410f054f0543158df454e652237..38c4ac994e488a4381e17153051c1f6f4f4c24e1 100644
--- a/ash/drag_drop/drag_drop_controller.cc
+++ b/ash/drag_drop/drag_drop_controller.cc
@@ -6,11 +6,11 @@
#include "ash/drag_drop/drag_image_view.h"
#include "ash/shell.h"
+#include "ash/wm/cursor_manager.h"
#include "base/message_loop.h"
#include "base/run_loop.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/client/drag_drop_delegate.h"
-#include "ui/aura/cursor_manager.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -128,7 +128,7 @@ void DragDropController::DragUpdate(aura::Window* target,
cursor = ui::kCursorAlias;
else if (op & ui::DragDropTypes::DRAG_MOVE)
cursor = ui::kCursorMove;
- aura::Env::GetInstance()->cursor_manager()->SetCursor(cursor);
+ ash::Shell::GetInstance()->cursor_manager()->SetCursor(cursor);
}
}
@@ -141,7 +141,7 @@ void DragDropController::DragUpdate(aura::Window* target,
void DragDropController::Drop(aura::Window* target,
const aura::LocatedEvent& event) {
- aura::Env::GetInstance()->cursor_manager()->SetCursor(ui::kCursorPointer);
+ ash::Shell::GetInstance()->cursor_manager()->SetCursor(ui::kCursorPointer);
aura::client::DragDropDelegate* delegate = NULL;
// We must guarantee that a target gets a OnDragEntered before Drop. WebKit
@@ -170,7 +170,7 @@ void DragDropController::Drop(aura::Window* target,
}
void DragDropController::DragCancel() {
- aura::Env::GetInstance()->cursor_manager()->SetCursor(ui::kCursorPointer);
+ ash::Shell::GetInstance()->cursor_manager()->SetCursor(ui::kCursorPointer);
// |drag_window_| can be NULL if we have just started the drag and have not
// received any DragUpdates, or, if the |drag_window_| gets destroyed during
« no previous file with comments | « ash/ash.gyp ('k') | ash/shell.h » ('j') | chrome/browser/ui/views/extensions/extension_dialog.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698