OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/mus/ws/server_window_surface_manager_test_api.h" |
| 6 |
| 7 #include "components/mus/ws/server_window.h" |
| 8 |
| 9 namespace mus { |
| 10 namespace ws { |
| 11 |
| 12 ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi( |
| 13 ServerWindowSurfaceManager* manager) |
| 14 : manager_(manager) {} |
| 15 |
| 16 ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {} |
| 17 |
| 18 void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() { |
| 19 manager_->type_to_surface_map_[mojom::SURFACE_TYPE_DEFAULT] = nullptr; |
| 20 } |
| 21 |
| 22 void EnableHitTest(ServerWindow* window) { |
| 23 ServerWindowSurfaceManagerTestApi test_api( |
| 24 window->GetOrCreateSurfaceManager()); |
| 25 test_api.CreateEmptyDefaultSurface(); |
| 26 } |
| 27 |
| 28 } // namespace ws |
| 29 } // namespace mus |
OLD | NEW |