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

Side by Side Diff: services/ui/ws/window_tree.cc

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Notify our client if |tree| was embedded in any of our windows. 212 // Notify our client if |tree| was embedded in any of our windows.
213 for (const auto* tree_root : tree->roots_) { 213 for (const auto* tree_root : tree->roots_) {
214 const bool owns_tree_root = tree_root->id().client_id == id_; 214 const bool owns_tree_root = tree_root->id().client_id == id_;
215 if (owns_tree_root) { 215 if (owns_tree_root) {
216 client()->OnEmbeddedAppDisconnected( 216 client()->OnEmbeddedAppDisconnected(
217 ClientWindowIdForWindow(tree_root).id); 217 ClientWindowIdForWindow(tree_root).id);
218 } 218 }
219 } 219 }
220 } 220 }
221 221
222 void WindowTree::OnWmDisplayModified(const display::Display& display) {
223 window_manager_internal_->WmDisplayModified(display);
224 }
225
222 void WindowTree::NotifyChangeCompleted( 226 void WindowTree::NotifyChangeCompleted(
223 uint32_t change_id, 227 uint32_t change_id,
224 mojom::WindowManagerErrorCode error_code) { 228 mojom::WindowManagerErrorCode error_code) {
225 client()->OnChangeCompleted( 229 client()->OnChangeCompleted(
226 change_id, error_code == mojom::WindowManagerErrorCode::SUCCESS); 230 change_id, error_code == mojom::WindowManagerErrorCode::SUCCESS);
227 } 231 }
228 232
229 bool WindowTree::SetCapture(const ClientWindowId& client_window_id) { 233 bool WindowTree::SetCapture(const ClientWindowId& client_window_id) {
230 ServerWindow* window = GetWindowByClientId(client_window_id); 234 ServerWindow* window = GetWindowByClientId(client_window_id);
231 WindowManagerDisplayRoot* display_root = GetWindowManagerDisplayRoot(window); 235 WindowManagerDisplayRoot* display_root = GetWindowManagerDisplayRoot(window);
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 1940 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
1937 effect_bitmask, callback); 1941 effect_bitmask, callback);
1938 } 1942 }
1939 1943
1940 void WindowTree::PerformOnDragDropDone() { 1944 void WindowTree::PerformOnDragDropDone() {
1941 client()->OnDragDropDone(); 1945 client()->OnDragDropDone();
1942 } 1946 }
1943 1947
1944 } // namespace ws 1948 } // namespace ws
1945 } // namespace ui 1949 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698