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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "components/mus/public/interfaces/window_tree.mojom.h" | 9 #include "components/mus/public/interfaces/window_tree.mojom.h" |
10 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 10 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 RectPtr new_bounds) override { | 323 RectPtr new_bounds) override { |
324 // The bounds of the root may change during startup on Android at random | 324 // The bounds of the root may change during startup on Android at random |
325 // times. As this doesn't matter, and shouldn't impact test exepctations, | 325 // times. As this doesn't matter, and shouldn't impact test exepctations, |
326 // it is ignored. | 326 // it is ignored. |
327 if (window_id == root_window_id_) | 327 if (window_id == root_window_id_) |
328 return; | 328 return; |
329 tracker()->OnWindowBoundsChanged(window_id, old_bounds.Pass(), | 329 tracker()->OnWindowBoundsChanged(window_id, old_bounds.Pass(), |
330 new_bounds.Pass()); | 330 new_bounds.Pass()); |
331 } | 331 } |
332 void OnClientAreaChanged(uint32_t window_id, | 332 void OnClientAreaChanged(uint32_t window_id, |
333 mojo::RectPtr old_client_area, | 333 mojo::InsetsPtr old_client_area, |
334 mojo::RectPtr new_client_area) override {} | 334 mojo::InsetsPtr new_client_area) override {} |
335 void OnWindowViewportMetricsChanged(ViewportMetricsPtr old_metrics, | 335 void OnWindowViewportMetricsChanged(ViewportMetricsPtr old_metrics, |
336 ViewportMetricsPtr new_metrics) override { | 336 ViewportMetricsPtr new_metrics) override { |
337 // Don't track the metrics as they are available at an indeterministic time | 337 // Don't track the metrics as they are available at an indeterministic time |
338 // on Android. | 338 // on Android. |
339 } | 339 } |
340 void OnWindowHierarchyChanged(Id window, | 340 void OnWindowHierarchyChanged(Id window, |
341 Id new_parent, | 341 Id new_parent, |
342 Id old_parent, | 342 Id old_parent, |
343 Array<WindowDataPtr> windows) override { | 343 Array<WindowDataPtr> windows) override { |
344 tracker()->OnWindowHierarchyChanged(window, new_parent, old_parent, | 344 tracker()->OnWindowHierarchyChanged(window, new_parent, old_parent, |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 | 1715 |
1716 // TODO(sky): make sure coverage of what was | 1716 // TODO(sky): make sure coverage of what was |
1717 // WindowManagerTest.SecondEmbedRoot_InitService and | 1717 // WindowManagerTest.SecondEmbedRoot_InitService and |
1718 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window | 1718 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window |
1719 // manager | 1719 // manager |
1720 // tests. | 1720 // tests. |
1721 | 1721 |
1722 } // namespace ws | 1722 } // namespace ws |
1723 | 1723 |
1724 } // namespace mus | 1724 } // namespace mus |
OLD | NEW |