blob: 6d8442d1cece325262e0e8fd7472dbdffdc75fc5 [file] [log] [blame]
// Copyright 2016 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_WINDOW_SERVER_TEST_IMPL_H_
#define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/ui/public/interfaces/window_server_test.mojom.h"
namespace ui {
namespace ws {
class ServerWindow;
class WindowServer;
class WindowTree;
struct WindowId;
class WindowServerTestImpl : public mojom::WindowServerTest {
public:
WindowServerTestImpl(WindowServer* server,
mojo::InterfaceRequest<WindowServerTest> request);
private:
~WindowServerTestImpl() override;
void OnWindowPaint(const std::string& name,
const EnsureClientHasDrawnWindowCallback& cb,
ServerWindow* window);
// mojom::WindowServerTest:
void EnsureClientHasDrawnWindow(
const mojo::String& client_name,
const EnsureClientHasDrawnWindowCallback& callback) override;
WindowServer* window_server_;
mojo::StrongBinding<WindowServerTest> binding_;
DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl);
};
} // namespace ws
} // namespace ui
#endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_