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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2759463002: aura-mus: create an interactive ui test for drag and drop. (Closed)
Patch Set: Merge with master 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/env.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 1128bcdcb77c600333dfcfbc4861ed7f7d8d1c2c..9b93c51aa52c4206e39da9f44e89475a51a30b5f 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -481,6 +481,13 @@ WindowMus* WindowTreeClient::NewWindowFromWindowData(
void WindowTreeClient::SetWindowTree(ui::mojom::WindowTreePtr window_tree_ptr) {
tree_ptr_ = std::move(window_tree_ptr);
+
+ // Enable nested dispatch on both sides of this connect because these objects
+ // are used in the presence of nested runloops, such as those during drag and
+ // drop.
+ binding_.EnableNestedDispatch(true);
+ tree_ptr_.EnableNestedDispatch(true);
+
WindowTreeConnectionEstablished(tree_ptr_.get());
tree_ptr_->GetCursorLocationMemory(
base::Bind(&WindowTreeClient::OnReceivedCursorLocationMemory,
@@ -1393,6 +1400,8 @@ void WindowTreeClient::WmSetBounds(uint32_t change_id,
result = bounds_in_dip == transit_bounds_in_dip;
window->SetBoundsFromServer(bounds_in_dip);
}
+ } else {
+ DVLOG(1) << "Unknown window passed to WmSetBounds().";
}
if (window_manager_internal_client_)
window_manager_internal_client_->WmResponse(change_id, result);
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698