| 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 "services/ui/public/cpp/tests/test_window_tree.h" | 5 #include "services/ui/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 ui { | 9 namespace ui { |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 void TestWindowTree::SetWindowOpacity(uint32_t change_id, | 81 void TestWindowTree::SetWindowOpacity(uint32_t change_id, |
| 82 uint32_t window_id, | 82 uint32_t window_id, |
| 83 float opacity) { | 83 float opacity) { |
| 84 got_change_ = true; | 84 got_change_ = true; |
| 85 change_id_ = change_id; | 85 change_id_ = change_id; |
| 86 } | 86 } |
| 87 | 87 |
| 88 void TestWindowTree::AttachCompositorFrameSink( | 88 void TestWindowTree::AttachCompositorFrameSink( |
| 89 uint32_t window_id, | 89 uint32_t window_id, |
| 90 mojom::CompositorFrameSinkType type, | |
| 91 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, | 90 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, |
| 92 cc::mojom::MojoCompositorFrameSinkClientPtr client) {} | 91 cc::mojom::MojoCompositorFrameSinkClientPtr client) {} |
| 93 | 92 |
| 94 void TestWindowTree::AddWindow(uint32_t change_id, | 93 void TestWindowTree::AddWindow(uint32_t change_id, |
| 95 uint32_t parent, | 94 uint32_t parent, |
| 96 uint32_t child) {} | 95 uint32_t child) {} |
| 97 | 96 |
| 98 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id, | 97 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id, |
| 99 uint32_t window_id) {} | 98 uint32_t window_id) {} |
| 100 | 99 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} | 181 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} |
| 183 | 182 |
| 184 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 183 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
| 185 uint32_t window_id, | 184 uint32_t window_id, |
| 186 mojom::MoveLoopSource source, | 185 mojom::MoveLoopSource source, |
| 187 const gfx::Point& cursor_location) {} | 186 const gfx::Point& cursor_location) {} |
| 188 | 187 |
| 189 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 188 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 190 | 189 |
| 191 } // namespace ui | 190 } // namespace ui |
| OLD | NEW |