| Index: components/mus/ws/display_binding.h
|
| diff --git a/components/mus/ws/display_binding.h b/components/mus/ws/display_binding.h
|
| deleted file mode 100644
|
| index e1f46124870e03fb4c31a5c9c8f557c6259eefc1..0000000000000000000000000000000000000000
|
| --- a/components/mus/ws/display_binding.h
|
| +++ /dev/null
|
| @@ -1,60 +0,0 @@
|
| -// 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 COMPONENTS_MUS_WS_DISPLAY_BINDING_H_
|
| -#define COMPONENTS_MUS_WS_DISPLAY_BINDING_H_
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/macros.h"
|
| -#include "components/mus/public/interfaces/window_tree_host.mojom.h"
|
| -#include "components/mus/ws/display.h"
|
| -#include "components/mus/ws/user_id.h"
|
| -#include "mojo/public/cpp/bindings/binding.h"
|
| -
|
| -namespace mus {
|
| -namespace ws {
|
| -
|
| -class ServerWindow;
|
| -class WindowServer;
|
| -class WindowTree;
|
| -
|
| -// DisplayBinding manages the binding between a Display and it's mojo clients.
|
| -// DisplayBinding is used when a Display is created via a
|
| -// WindowTreeHostFactory.
|
| -//
|
| -// DisplayBinding is owned by Display.
|
| -class DisplayBinding {
|
| - public:
|
| - virtual ~DisplayBinding() {}
|
| -
|
| - virtual WindowTree* CreateWindowTree(ServerWindow* root) = 0;
|
| -};
|
| -
|
| -// Live implementation of DisplayBinding.
|
| -class DisplayBindingImpl : public DisplayBinding {
|
| - public:
|
| - DisplayBindingImpl(mojom::WindowTreeHostRequest request,
|
| - Display* display,
|
| - const UserId& user_id,
|
| - mojom::WindowTreeClientPtr client,
|
| - WindowServer* window_server);
|
| - ~DisplayBindingImpl() override;
|
| -
|
| - private:
|
| - // DisplayBinding:
|
| - WindowTree* CreateWindowTree(ServerWindow* root) override;
|
| -
|
| - WindowServer* window_server_;
|
| - const UserId user_id_;
|
| - mojo::Binding<mojom::WindowTreeHost> binding_;
|
| - mojom::WindowTreeClientPtr client_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DisplayBindingImpl);
|
| -};
|
| -
|
| -} // namespace ws
|
| -} // namespace mus
|
| -
|
| -#endif // COMPONENTS_MUS_WS_DISPLAY_BINDING_H_
|
|
|