Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1645)

Unified Diff: services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698