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 27 matching lines...) Expand all Loading... |
38 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) { | 38 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) { |
39 got_change_ = true; | 39 got_change_ = true; |
40 change_id_ = change_id; | 40 change_id_ = change_id; |
41 window_id_ = window_id; | 41 window_id_ = window_id; |
42 } | 42 } |
43 | 43 |
44 void TestWindowTree::DeleteWindow(uint32_t change_id, uint32_t window_id) {} | 44 void TestWindowTree::DeleteWindow(uint32_t change_id, uint32_t window_id) {} |
45 | 45 |
46 void TestWindowTree::SetWindowBounds(uint32_t change_id, | 46 void TestWindowTree::SetWindowBounds(uint32_t change_id, |
47 uint32_t window_id, | 47 uint32_t window_id, |
48 mojo::RectPtr bounds) { | 48 const gfx::Rect& bounds) { |
49 got_change_ = true; | 49 got_change_ = true; |
50 change_id_ = change_id; | 50 change_id_ = change_id; |
51 } | 51 } |
52 | 52 |
53 void TestWindowTree::SetClientArea( | 53 void TestWindowTree::SetClientArea( |
54 uint32_t window_id, | 54 uint32_t window_id, |
55 mojo::InsetsPtr insets, | 55 const gfx::Insets& insets, |
56 mojo::Array<mojo::RectPtr> additional_client_areas) {} | 56 mojo::Array<gfx::Rect> additional_client_areas) {} |
57 | 57 |
58 void TestWindowTree::SetHitTestMask(uint32_t window_id, mojo::RectPtr mask) {} | 58 void TestWindowTree::SetHitTestMask(uint32_t window_id, const gfx::Rect& mask) { |
| 59 } |
59 | 60 |
60 void TestWindowTree::SetWindowVisibility(uint32_t change_id, | 61 void TestWindowTree::SetWindowVisibility(uint32_t change_id, |
61 uint32_t window_id, | 62 uint32_t window_id, |
62 bool visible) { | 63 bool visible) { |
63 got_change_ = true; | 64 got_change_ = true; |
64 change_id_ = change_id; | 65 change_id_ = change_id; |
65 } | 66 } |
66 | 67 |
67 void TestWindowTree::SetWindowProperty(uint32_t change_id, | 68 void TestWindowTree::SetWindowProperty(uint32_t change_id, |
68 uint32_t window_id, | 69 uint32_t window_id, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 157 |
157 void TestWindowTree::GetWindowManagerClient( | 158 void TestWindowTree::GetWindowManagerClient( |
158 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 159 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
159 | 160 |
160 void TestWindowTree::GetCursorLocationMemory( | 161 void TestWindowTree::GetCursorLocationMemory( |
161 const GetCursorLocationMemoryCallback& callback) { | 162 const GetCursorLocationMemoryCallback& callback) { |
162 callback.Run(mojo::ScopedSharedBufferHandle()); | 163 callback.Run(mojo::ScopedSharedBufferHandle()); |
163 } | 164 } |
164 | 165 |
165 } // namespace mus | 166 } // namespace mus |
OLD | NEW |