| Index: services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h
|
| diff --git a/services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h b/services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7b0271fcd0487929064f54a35bc1f2d5d1ce4692
|
| --- /dev/null
|
| +++ b/services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_TEST_API_H_
|
| +#define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_TEST_API_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "services/ui/ws/server_window_compositor_frame_sink_manager.h"
|
| +
|
| +namespace ui {
|
| +namespace ws {
|
| +
|
| +class ServerWindow;
|
| +
|
| +// Use to poke at the internals of ServerWindowCompositorFrameSinkManager.
|
| +class ServerWindowCompositorFrameSinkManagerTestApi {
|
| + public:
|
| + explicit ServerWindowCompositorFrameSinkManagerTestApi(
|
| + ServerWindowCompositorFrameSinkManager* manager);
|
| + ~ServerWindowCompositorFrameSinkManagerTestApi();
|
| +
|
| + void CreateEmptyDefaultCompositorFrameSink();
|
| + void DestroyDefaultCompositorFrameSink();
|
| +
|
| + private:
|
| + ServerWindowCompositorFrameSinkManager* manager_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManagerTestApi);
|
| +};
|
| +
|
| +// Use to make |window| a target for events.
|
| +void EnableHitTest(ServerWindow* window);
|
| +void DisableHitTest(ServerWindow* window);
|
| +
|
| +} // namespace ws
|
| +} // namespace ui
|
| +
|
| +#endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_TEST_API_H_
|
|
|