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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 years, 1 month 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 | « ash/drag_drop/drag_drop_tracker.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_tracker.cc
diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
index 22587555d9d34d14e80ae76316fb27b4ebe1f3b7..269e2edbc5f02d2f0c07f6ae3ca7fae988b23da0 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -14,11 +14,11 @@
namespace {
// Creates a window for capturing drag events.
-aura::Window* CreateCaptureWindow() {
+aura::Window* CreateCaptureWindow(aura::RootWindow* context_root) {
aura::Window* window = new aura::Window(NULL);
window->SetType(aura::client::WINDOW_TYPE_NORMAL);
window->Init(ui::LAYER_NOT_DRAWN);
- window->SetParent(NULL);
+ window->SetDefaultParentByRootWindow(context_root, gfx::Rect());
window->Show();
return window;
}
@@ -28,8 +28,8 @@ aura::Window* CreateCaptureWindow() {
namespace ash {
namespace internal {
-DragDropTracker::DragDropTracker()
- : capture_window_(CreateCaptureWindow()) {
+DragDropTracker::DragDropTracker(aura::RootWindow* context_root)
+ : capture_window_(CreateCaptureWindow(context_root)) {
}
DragDropTracker::~DragDropTracker() {
« no previous file with comments | « ash/drag_drop/drag_drop_tracker.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698