| 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_WINDOW_MANAGER_CLIENT_IMPL_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_WINDOW_MANAGER_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/window_manager/window_manager.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 class MOJO_VIEW_MANAGER_EXPORT WindowManagerClientImpl |
| 30 : public InterfaceImpl<WindowManagerClient> { |
| 31 public: |
| 32 explicit WindowManagerClientImpl(ConnectionManager* connection_manager); |
| 33 virtual ~WindowManagerClientImpl(); |
| 34 |
| 35 // WindowManagerClient: |
| 36 virtual void DispatchInputEventToView(Id transport_view_id, |
| 37 EventPtr event) override; |
| 38 |
| 39 // InterfaceImp overrides: |
| 40 virtual void OnConnectionError() override; |
| 41 |
| 42 private: |
| 43 ConnectionManager* connection_manager_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(WindowManagerClientImpl); |
| 46 }; |
| 47 |
| 48 #if defined(OS_WIN) |
| 49 #pragma warning(pop) |
| 50 #endif |
| 51 |
| 52 } // namespace service |
| 53 } // namespace mojo |
| 54 |
| 55 #endif // MOJO_SERVICES_VIEW_MANAGER_WINDOW_MANAGER_CLIENT_IMPL_H_ |
| OLD | NEW |