Chromium Code Reviews| Index: mojo/services/view_manager/view_manager_service_delegate_client_impl.h |
| diff --git a/mojo/services/view_manager/view_manager_service_delegate_client_impl.h b/mojo/services/view_manager/view_manager_service_delegate_client_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c0081338316d925e4c00a7564b77af67f2c3eeae |
| --- /dev/null |
| +++ b/mojo/services/view_manager/view_manager_service_delegate_client_impl.h |
| @@ -0,0 +1,56 @@ |
| +// 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 MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_H_ |
| +#define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_H_ |
| + |
| +#include <set> |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/basictypes.h" |
| +#include "mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom.h" |
| +#include "mojo/services/view_manager/ids.h" |
| +#include "mojo/services/view_manager/view_manager_export.h" |
| + |
| +namespace mojo { |
| +namespace service { |
| + |
| +class ConnectionManager; |
| + |
| +#if defined(OS_WIN) |
| +// Equivalent of NON_EXPORTED_BASE which does not work with the template snafu |
| +// below. |
| +#pragma warning(push) |
| +#pragma warning(disable : 4275) |
| +#endif |
| + |
| +// Manages a connection from the client. |
| +class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceDelegateClientImpl |
| + : public InterfaceImpl<ViewManagerServiceDelegateClient> { |
| + public: |
| + ViewManagerServiceDelegateClientImpl(ConnectionManager* connection_manager); |
|
Ben Goodger (Google)
2014/10/09 17:11:40
explicit
|
| + virtual ~ViewManagerServiceDelegateClientImpl(); |
| + |
| + // ViewManagerServiceDelegateClient: |
| + virtual void DispatchInputEventToView(Id transport_view_id, |
| + EventPtr event) override; |
| + |
| + // InterfaceImp overrides: |
| + virtual void OnConnectionError() override; |
| + |
| + private: |
| + ConnectionManager* connection_manager_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceDelegateClientImpl); |
| +}; |
| + |
| +#if defined(OS_WIN) |
| +#pragma warning(pop) |
| +#endif |
| + |
| +} // namespace service |
| +} // namespace mojo |
| + |
| +#endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_H_ |