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

Unified Diff: services/ui/ws/window_tree.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 | « services/ui/ws/window_server_test_impl.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index 1a1a6e30becd0da8021ee07e770055b3a78fb97f..52b87604194b4ffeb96217bafd6a1f0d346dae4d 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -1360,6 +1360,9 @@ void WindowTree::SetWindowBounds(
const base::Optional<cc::LocalSurfaceId>& local_surface_id) {
ServerWindow* window = GetWindowByClientId(ClientWindowId(window_id));
if (window && ShouldRouteToWindowManager(window)) {
+ DVLOG(3) << "Redirecting request to change bounds for "
+ << (window ? WindowIdToTransportId(window->id()) : 0)
+ << " to window manager...";
const uint32_t wm_change_id =
window_server_->GenerateWindowManagerChangeId(this, change_id);
// |window_id| may be a client id, use the id from the window to ensure
@@ -1382,6 +1385,8 @@ void WindowTree::SetWindowBounds(
if (success) {
Operation op(this, window_server_, OperationType::SET_WINDOW_BOUNDS);
window->SetBounds(bounds, local_surface_id);
+ } else {
+ DVLOG(1) << "Failed to set bounds on window.";
}
client()->OnChangeCompleted(change_id, success);
}
« no previous file with comments | « services/ui/ws/window_server_test_impl.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698