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

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

Issue 2739213003: aura-mus: wire up drag and drop. (Closed)
Patch Set: sky comments Created 3 years, 9 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
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/views/mus/mus_client.h » ('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.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 6efc8ffb2e1642b1ae3a9ce73c8e1705061c076f..c991bfc5cf6ae2ca37a69d5f4a7126b8597900bc 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -307,6 +307,8 @@ void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
if (!params.accept_events) {
aura::WindowPortMus::Get(window())->SetEventTargetingPolicy(
ui::mojom::EventTargetingPolicy::NONE);
+ } else {
+ aura::WindowPortMus::Get(content_window)->SetCanAcceptDrops(true);
}
}
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/views/mus/mus_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698