| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void TestWindowTree::SetWindowOpacity(uint32_t change_id, | 79 void TestWindowTree::SetWindowOpacity(uint32_t change_id, |
| 80 uint32_t window_id, | 80 uint32_t window_id, |
| 81 float opacity) { | 81 float opacity) { |
| 82 got_change_ = true; | 82 got_change_ = true; |
| 83 change_id_ = change_id; | 83 change_id_ = change_id; |
| 84 } | 84 } |
| 85 | 85 |
| 86 void TestWindowTree::AttachSurface( | 86 void TestWindowTree::AttachSurface( |
| 87 uint32_t window_id, | 87 uint32_t window_id, |
| 88 mojom::SurfaceType type, | 88 mojom::SurfaceType type, |
| 89 mojo::InterfaceRequest<mojom::Surface> surface, | 89 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, |
| 90 mojom::SurfaceClientPtr client) {} | 90 cc::mojom::MojoCompositorFrameSinkClientPtr client) {} |
| 91 | 91 |
| 92 void TestWindowTree::AddWindow(uint32_t change_id, | 92 void TestWindowTree::AddWindow(uint32_t change_id, |
| 93 uint32_t parent, | 93 uint32_t parent, |
| 94 uint32_t child) {} | 94 uint32_t child) {} |
| 95 | 95 |
| 96 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id, | 96 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id, |
| 97 uint32_t window_id) {} | 97 uint32_t window_id) {} |
| 98 | 98 |
| 99 void TestWindowTree::AddTransientWindow(uint32_t change_id, | 99 void TestWindowTree::AddTransientWindow(uint32_t change_id, |
| 100 uint32_t window_id, | 100 uint32_t window_id, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 mojom::MoveLoopSource source, | 184 mojom::MoveLoopSource source, |
| 185 const gfx::Point& cursor_location) {} | 185 const gfx::Point& cursor_location) {} |
| 186 | 186 |
| 187 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 187 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 188 | 188 |
| 189 void TestWindowTree::OnWindowSurfaceDetached( | 189 void TestWindowTree::OnWindowSurfaceDetached( |
| 190 uint32_t window_id, | 190 uint32_t window_id, |
| 191 const cc::SurfaceSequence& sequence) {} | 191 const cc::SurfaceSequence& sequence) {} |
| 192 | 192 |
| 193 } // namespace ui | 193 } // namespace ui |
| OLD | NEW |