| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "components/mus/public/cpp/types.h" | 9 #include "components/mus/public/cpp/types.h" |
| 10 #include "components/mus/public/cpp/util.h" | 10 #include "components/mus/public/cpp/util.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 tracker_.OnEmbeddedAppDisconnected(window); | 70 tracker_.OnEmbeddedAppDisconnected(window); |
| 71 } | 71 } |
| 72 void OnUnembed() override { tracker_.OnUnembed(); } | 72 void OnUnembed() override { tracker_.OnUnembed(); } |
| 73 void OnWindowBoundsChanged(uint32_t window, | 73 void OnWindowBoundsChanged(uint32_t window, |
| 74 mojo::RectPtr old_bounds, | 74 mojo::RectPtr old_bounds, |
| 75 mojo::RectPtr new_bounds) override { | 75 mojo::RectPtr new_bounds) override { |
| 76 tracker_.OnWindowBoundsChanged(window, old_bounds.Pass(), | 76 tracker_.OnWindowBoundsChanged(window, old_bounds.Pass(), |
| 77 new_bounds.Pass()); | 77 new_bounds.Pass()); |
| 78 } | 78 } |
| 79 void OnClientAreaChanged(uint32_t window_id, | 79 void OnClientAreaChanged(uint32_t window_id, |
| 80 mojo::RectPtr old_client_area, | 80 mojo::InsetsPtr old_client_area, |
| 81 mojo::RectPtr new_client_area) override {} | 81 mojo::InsetsPtr new_client_area) override {} |
| 82 void OnWindowViewportMetricsChanged( | 82 void OnWindowViewportMetricsChanged( |
| 83 mojom::ViewportMetricsPtr old_metrics, | 83 mojom::ViewportMetricsPtr old_metrics, |
| 84 mojom::ViewportMetricsPtr new_metrics) override { | 84 mojom::ViewportMetricsPtr new_metrics) override { |
| 85 tracker_.OnWindowViewportMetricsChanged(old_metrics.Pass(), | 85 tracker_.OnWindowViewportMetricsChanged(old_metrics.Pass(), |
| 86 new_metrics.Pass()); | 86 new_metrics.Pass()); |
| 87 } | 87 } |
| 88 void OnWindowHierarchyChanged(uint32_t window, | 88 void OnWindowHierarchyChanged(uint32_t window, |
| 89 uint32_t new_parent, | 89 uint32_t new_parent, |
| 90 uint32_t old_parent, | 90 uint32_t old_parent, |
| 91 Array<WindowDataPtr> windows) override { | 91 Array<WindowDataPtr> windows) override { |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 ASSERT_EQ(2u, embed_connection->tracker()->changes()->size()); | 467 ASSERT_EQ(2u, embed_connection->tracker()->changes()->size()); |
| 468 EXPECT_EQ("Focused id=2,1", | 468 EXPECT_EQ("Focused id=2,1", |
| 469 ChangesToDescription1(*embed_connection->tracker()->changes())[0]); | 469 ChangesToDescription1(*embed_connection->tracker()->changes())[0]); |
| 470 EXPECT_EQ("InputEvent window=2,1 event_action=4", | 470 EXPECT_EQ("InputEvent window=2,1 event_action=4", |
| 471 ChangesToDescription1(*embed_connection->tracker()->changes())[1]); | 471 ChangesToDescription1(*embed_connection->tracker()->changes())[1]); |
| 472 } | 472 } |
| 473 | 473 |
| 474 } // namespace ws | 474 } // namespace ws |
| 475 | 475 |
| 476 } // namespace mus | 476 } // namespace mus |
| OLD | NEW |