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_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ |
| 6 #define MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 class WindowManagerApp; |
| 14 |
| 15 class NativeViewportEventDispatcherImpl |
| 16 : public InterfaceImpl<NativeViewportEventDispatcher> { |
| 17 public: |
| 18 explicit NativeViewportEventDispatcherImpl(WindowManagerApp* app); |
| 19 ~NativeViewportEventDispatcherImpl() override; |
| 20 |
| 21 private: |
| 22 // NativeViewportEventDispatcher: |
| 23 void OnEvent(mojo::EventPtr event, |
| 24 const mojo::Callback<void()>& callback) override; |
| 25 |
| 26 WindowManagerApp* app_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(NativeViewportEventDispatcherImpl); |
| 29 }; |
| 30 |
| 31 } // namespace mojo |
| 32 |
| 33 #endif // MOJO_SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_ |
OLD | NEW |