| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/public/cpp/tests/test_window_tree.h" | 5 #include "components/mus/public/cpp/tests/test_window_tree.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace mus { | 9 namespace mus { |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 uint32_t transient_window_id) {} | 92 uint32_t transient_window_id) {} |
| 93 | 93 |
| 94 void TestWindowTree::ReorderWindow(uint32_t change_id, | 94 void TestWindowTree::ReorderWindow(uint32_t change_id, |
| 95 uint32_t window_id, | 95 uint32_t window_id, |
| 96 uint32_t relative_window_id, | 96 uint32_t relative_window_id, |
| 97 mojom::OrderDirection direction) {} | 97 mojom::OrderDirection direction) {} |
| 98 | 98 |
| 99 void TestWindowTree::GetWindowTree(uint32_t window_id, | 99 void TestWindowTree::GetWindowTree(uint32_t window_id, |
| 100 const GetWindowTreeCallback& callback) {} | 100 const GetWindowTreeCallback& callback) {} |
| 101 | 101 |
| 102 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { |
| 103 got_change_ = true; |
| 104 change_id_ = change_id; |
| 105 } |
| 106 |
| 107 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { |
| 108 got_change_ = true; |
| 109 change_id_ = change_id; |
| 110 } |
| 111 |
| 102 void TestWindowTree::Embed(uint32_t window_id, | 112 void TestWindowTree::Embed(uint32_t window_id, |
| 103 mojom::WindowTreeClientPtr client, | 113 mojom::WindowTreeClientPtr client, |
| 104 uint32_t policy_bitmask, | 114 uint32_t policy_bitmask, |
| 105 const EmbedCallback& callback) {} | 115 const EmbedCallback& callback) {} |
| 106 | 116 |
| 107 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { | 117 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { |
| 108 got_change_ = true; | 118 got_change_ = true; |
| 109 change_id_ = change_id; | 119 change_id_ = change_id; |
| 110 } | 120 } |
| 111 | 121 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 124 | 134 |
| 125 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id) { | 135 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id) { |
| 126 EXPECT_FALSE(acked_events_.count(event_id)); | 136 EXPECT_FALSE(acked_events_.count(event_id)); |
| 127 acked_events_.insert(event_id); | 137 acked_events_.insert(event_id); |
| 128 } | 138 } |
| 129 | 139 |
| 130 void TestWindowTree::GetWindowManagerClient( | 140 void TestWindowTree::GetWindowManagerClient( |
| 131 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 141 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
| 132 | 142 |
| 133 } // namespace mus | 143 } // namespace mus |
| OLD | NEW |