| 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 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ | 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ |
| 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ | 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/mus/ws/server_window_surface_manager.h" | 9 #include "components/mus/ws/server_window_surface_manager.h" |
| 10 | 10 |
| 11 namespace mus { | 11 namespace mus { |
| 12 namespace ws { | 12 namespace ws { |
| 13 | 13 |
| 14 class ServerWindow; | 14 class ServerWindow; |
| 15 | 15 |
| 16 // Use to poke at the internals of ServerWindowSurfaceManager. | 16 // Use to poke at the internals of ServerWindowSurfaceManager. |
| 17 class ServerWindowSurfaceManagerTestApi { | 17 class ServerWindowSurfaceManagerTestApi { |
| 18 public: | 18 public: |
| 19 explicit ServerWindowSurfaceManagerTestApi( | 19 explicit ServerWindowSurfaceManagerTestApi( |
| 20 ServerWindowSurfaceManager* manager); | 20 ServerWindowSurfaceManager* manager); |
| 21 ~ServerWindowSurfaceManagerTestApi(); | 21 ~ServerWindowSurfaceManagerTestApi(); |
| 22 | 22 |
| 23 void CreateEmptyDefaultSurface(); | 23 void CreateEmptyDefaultSurface(); |
| 24 void DestroyDefaultSurface(); |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 ServerWindowSurfaceManager* manager_; | 27 ServerWindowSurfaceManager* manager_; |
| 27 | 28 |
| 28 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurfaceManagerTestApi); | 29 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurfaceManagerTestApi); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 // Use to make |window| a target for events. | 32 // Use to make |window| a target for events. |
| 32 void EnableHitTest(ServerWindow* window); | 33 void EnableHitTest(ServerWindow* window); |
| 34 void DisableHitTest(ServerWindow* window); |
| 33 | 35 |
| 34 } // namespace ws | 36 } // namespace ws |
| 35 } // namespace mus | 37 } // namespace mus |
| 36 | 38 |
| 37 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ | 39 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_MANAGER_TEST_API_H_ |
| OLD | NEW |