Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_H_ | |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_H_ | |
| 7 | |
| 8 #include <set> | |
| 9 #include <string> | |
| 10 #include <vector> | |
| 11 | |
| 12 #include "base/basictypes.h" | |
| 13 #include "mojo/services/public/interfaces/view_manager/view_manager_service_dele gate.mojom.h" | |
| 14 #include "mojo/services/view_manager/ids.h" | |
| 15 #include "mojo/services/view_manager/view_manager_export.h" | |
| 16 | |
| 17 namespace mojo { | |
| 18 namespace service { | |
| 19 | |
| 20 class ConnectionManager; | |
| 21 | |
| 22 #if defined(OS_WIN) | |
| 23 // Equivalent of NON_EXPORTED_BASE which does not work with the template snafu | |
| 24 // below. | |
| 25 #pragma warning(push) | |
| 26 #pragma warning(disable : 4275) | |
| 27 #endif | |
| 28 | |
| 29 // Manages a connection from the client. | |
| 30 class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceDelegateClientImpl | |
| 31 : public InterfaceImpl<ViewManagerServiceDelegateClient> { | |
| 32 public: | |
| 33 ViewManagerServiceDelegateClientImpl(ConnectionManager* connection_manager); | |
|
Ben Goodger (Google)
2014/10/09 17:11:40
explicit
| |
| 34 virtual ~ViewManagerServiceDelegateClientImpl(); | |
| 35 | |
| 36 // ViewManagerServiceDelegateClient: | |
| 37 virtual void DispatchInputEventToView(Id transport_view_id, | |
| 38 EventPtr event) override; | |
| 39 | |
| 40 // InterfaceImp overrides: | |
| 41 virtual void OnConnectionError() override; | |
| 42 | |
| 43 private: | |
| 44 ConnectionManager* connection_manager_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceDelegateClientImpl); | |
| 47 }; | |
| 48 | |
| 49 #if defined(OS_WIN) | |
| 50 #pragma warning(pop) | |
| 51 #endif | |
| 52 | |
| 53 } // namespace service | |
| 54 } // namespace mojo | |
| 55 | |
| 56 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_DELEGATE_CLIENT_IMPL_ H_ | |
| OLD | NEW |