OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ |
6 #define COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ | 6 #define COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "components/native_viewport/public/interfaces/native_viewport.mojom.h" | 11 #include "components/view_manager/public/interfaces/native_viewport.mojom.h" |
12 | 12 |
13 namespace view_manager { | 13 namespace view_manager { |
14 | 14 |
15 class ConnectionManager; | 15 class ConnectionManager; |
16 | 16 |
17 // Handles dispatching events to the right location as well as updating focus. | 17 // Handles dispatching events to the right location as well as updating focus. |
18 class EventDispatcher : public mojo::NativeViewportEventDispatcher { | 18 class EventDispatcher : public mojo::NativeViewportEventDispatcher { |
19 public: | 19 public: |
20 explicit EventDispatcher(ConnectionManager* connection_manager); | 20 explicit EventDispatcher(ConnectionManager* connection_manager); |
21 ~EventDispatcher() override; | 21 ~EventDispatcher() override; |
(...skipping 24 matching lines...) Expand all Loading... |
46 ConnectionManager* connection_manager_; | 46 ConnectionManager* connection_manager_; |
47 | 47 |
48 std::set<Accelerator> accelerators_; | 48 std::set<Accelerator> accelerators_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); | 50 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace view_manager | 53 } // namespace view_manager |
54 | 54 |
55 #endif // COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ | 55 #endif // COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ |
OLD | NEW |