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

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

Issue 2739213003: aura-mus: wire up drag and drop. (Closed)
Patch Set: msvc doesn't understand that this is impossible. 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
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..e0ed950fad4b1154f269d422431f938b2cc23283 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -307,6 +307,9 @@ void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
if (!params.accept_events) {
aura::WindowPortMus::Get(window())->SetEventTargetingPolicy(
ui::mojom::EventTargetingPolicy::NONE);
+ } else {
+ // Only enable drops if the window accepts events.
sky 2017/03/10 21:00:57 Did you mean to have a TODO here?
Elliot Glaysher 2017/03/10 21:30:07 No, this comment is descriptive that we only want
+ aura::WindowPortMus::Get(content_window)->SetCanAcceptDrops(true);
}
}

Powered by Google App Engine
This is Rietveld 408576698