Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "services/ui/ws/window_tree.h" | 5 #include "services/ui/ws/window_tree.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2063 window->SetBounds(window_server_->GetCurrentMoveLoopRevertBounds(), | 2063 window->SetBounds(window_server_->GetCurrentMoveLoopRevertBounds(), |
| 2064 base::nullopt); | 2064 base::nullopt); |
| 2065 } | 2065 } |
| 2066 | 2066 |
| 2067 window_server_->EndMoveLoop(); | 2067 window_server_->EndMoveLoop(); |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 window_server_->WindowManagerChangeCompleted(change_id, response); | 2070 window_server_->WindowManagerChangeCompleted(change_id, response); |
| 2071 } | 2071 } |
| 2072 | 2072 |
| 2073 void WindowTree::WmSetBoundsResponse(uint32_t change_id) { | |
| 2074 WmResponse(change_id, false); | |
|
sky
2017/03/27 19:22:51
Document why false is used.
Fady Samuel
2017/03/27 20:31:11
Done.
| |
| 2075 } | |
| 2076 | |
| 2073 void WindowTree::WmRequestClose(Id transport_window_id) { | 2077 void WindowTree::WmRequestClose(Id transport_window_id) { |
| 2074 ServerWindow* window = | 2078 ServerWindow* window = |
| 2075 GetWindowByClientId(ClientWindowId(transport_window_id)); | 2079 GetWindowByClientId(ClientWindowId(transport_window_id)); |
| 2076 WindowTree* tree = window_server_->GetTreeWithRoot(window); | 2080 WindowTree* tree = window_server_->GetTreeWithRoot(window); |
| 2077 if (tree && tree != this) { | 2081 if (tree && tree != this) { |
| 2078 tree->client()->RequestClose(tree->ClientWindowIdForWindow(window).id); | 2082 tree->client()->RequestClose(tree->ClientWindowIdForWindow(window).id); |
| 2079 } | 2083 } |
| 2080 // TODO(sky): think about what else case means. | 2084 // TODO(sky): think about what else case means. |
| 2081 } | 2085 } |
| 2082 | 2086 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2272 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, | 2276 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, |
| 2273 effect_bitmask, callback); | 2277 effect_bitmask, callback); |
| 2274 } | 2278 } |
| 2275 | 2279 |
| 2276 void WindowTree::PerformOnDragDropDone() { | 2280 void WindowTree::PerformOnDragDropDone() { |
| 2277 client()->OnDragDropDone(); | 2281 client()->OnDragDropDone(); |
| 2278 } | 2282 } |
| 2279 | 2283 |
| 2280 } // namespace ws | 2284 } // namespace ws |
| 2281 } // namespace ui | 2285 } // namespace ui |
| OLD | NEW |