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

Unified Diff: ash/drag_drop/drag_image_view.cc

Issue 10855159: Support Drag and Drop across displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DragDropTrackerTest on Win Created 8 years, 4 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_image_view.cc
diff --git a/ash/drag_drop/drag_image_view.cc b/ash/drag_drop/drag_image_view.cc
index 7a138f3ed0424f7ab5aa827c83d98a90b2f5eecf..b6a32f83c69497215f0ef2acf5a27451678c537a 100644
--- a/ash/drag_drop/drag_image_view.cc
+++ b/ash/drag_drop/drag_image_view.cc
@@ -5,6 +5,7 @@
#include "ash/drag_drop/drag_image_view.h"
#include "ash/wm/shadow_types.h"
+#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
namespace ash {
@@ -23,6 +24,7 @@ Widget* CreateDragWidget() {
params.transparent = true;
drag_widget->Init(params);
drag_widget->SetOpacity(0xFF);
+ drag_widget->GetNativeWindow()->set_owned_by_parent(false);
SetShadowType(drag_widget->GetNativeView(), SHADOW_TYPE_NONE);
return drag_widget;
}

Powered by Google App Engine
This is Rietveld 408576698