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/native_viewport/public/interfaces/native_viewport.mojom.h" |
12 #include "components/window_manager/public/interfaces/window_manager_internal.mo
jom.h" | |
13 | 12 |
14 namespace view_manager { | 13 namespace view_manager { |
15 | 14 |
16 class ConnectionManager; | 15 class ConnectionManager; |
17 | 16 |
18 // 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. |
19 class EventDispatcher : public mojo::NativeViewportEventDispatcher { | 18 class EventDispatcher : public mojo::NativeViewportEventDispatcher { |
20 public: | 19 public: |
21 explicit EventDispatcher(ConnectionManager* connection_manager); | 20 explicit EventDispatcher(ConnectionManager* connection_manager); |
22 ~EventDispatcher() override; | 21 ~EventDispatcher() override; |
(...skipping 24 matching lines...) Expand all Loading... |
47 ConnectionManager* connection_manager_; | 46 ConnectionManager* connection_manager_; |
48 | 47 |
49 std::set<Accelerator> accelerators_; | 48 std::set<Accelerator> accelerators_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); | 50 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); |
52 }; | 51 }; |
53 | 52 |
54 } // namespace view_manager | 53 } // namespace view_manager |
55 | 54 |
56 #endif // COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ | 55 #endif // COMPONENTS_VIEW_MANAGER_EVENT_DISPATCHER_H_ |
OLD | NEW |