| Index: components/mus/ws/window_tree_binding.h
|
| diff --git a/components/mus/ws/window_tree_binding.h b/components/mus/ws/window_tree_binding.h
|
| deleted file mode 100644
|
| index a9472b3566c5bf9321759e284431686ef9aeb889..0000000000000000000000000000000000000000
|
| --- a/components/mus/ws/window_tree_binding.h
|
| +++ /dev/null
|
| @@ -1,72 +0,0 @@
|
| -// Copyright 2014 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_WINDOW_TREE_BINDING_H_
|
| -#define COMPONENTS_MUS_WS_WINDOW_TREE_BINDING_H_
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/macros.h"
|
| -#include "components/mus/public/interfaces/window_tree.mojom.h"
|
| -#include "mojo/public/cpp/bindings/binding.h"
|
| -
|
| -namespace mus {
|
| -namespace ws {
|
| -
|
| -class WindowServer;
|
| -class WindowTree;
|
| -
|
| -// WindowTreeBinding manages the binding between a WindowTree and its
|
| -// WindowTreeClient. WindowTreeBinding exists so that a mock implementation
|
| -// of WindowTreeClient can be injected for tests. WindowTree owns its
|
| -// associated WindowTreeBinding.
|
| -class WindowTreeBinding {
|
| - public:
|
| - explicit WindowTreeBinding(mojom::WindowTreeClient* client);
|
| - virtual ~WindowTreeBinding();
|
| -
|
| - mojom::WindowTreeClient* client() { return client_; }
|
| -
|
| - // Obtains a new WindowManager. This should only be called once.
|
| - virtual mojom::WindowManager* GetWindowManager() = 0;
|
| -
|
| - virtual void SetIncomingMethodCallProcessingPaused(bool paused) = 0;
|
| -
|
| - private:
|
| - mojom::WindowTreeClient* client_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(WindowTreeBinding);
|
| -};
|
| -
|
| -// Bindings implementation of WindowTreeBinding.
|
| -class DefaultWindowTreeBinding : public WindowTreeBinding {
|
| - public:
|
| - DefaultWindowTreeBinding(WindowTree* tree,
|
| - WindowServer* window_server,
|
| - mojom::WindowTreeRequest service_request,
|
| - mojom::WindowTreeClientPtr client);
|
| - DefaultWindowTreeBinding(WindowTree* tree,
|
| - mojom::WindowTreeClientPtr client);
|
| - ~DefaultWindowTreeBinding() override;
|
| -
|
| - // Use when created with the constructor that does not take a
|
| - // WindowTreeRequest.
|
| - mojom::WindowTreePtr CreateInterfacePtrAndBind();
|
| -
|
| - // WindowTreeBinding:
|
| - mojom::WindowManager* GetWindowManager() override;
|
| - void SetIncomingMethodCallProcessingPaused(bool paused) override;
|
| -
|
| - private:
|
| - mojo::Binding<mojom::WindowTree> binding_;
|
| - mojom::WindowTreeClientPtr client_;
|
| - mojom::WindowManagerAssociatedPtr window_manager_internal_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DefaultWindowTreeBinding);
|
| -};
|
| -
|
| -} // namespace ws
|
| -} // namespace mus
|
| -
|
| -#endif // COMPONENTS_MUS_WS_WINDOW_TREE_BINDING_H_
|
|
|