| 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 SERVICES_UI_WS_EVENT_DISPATCHER_H_ | 5 #ifndef SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ | 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class LocatedEvent; | 26 class LocatedEvent; |
| 27 | 27 |
| 28 namespace ws { | 28 namespace ws { |
| 29 | 29 |
| 30 class Accelerator; | 30 class Accelerator; |
| 31 class DragController; | 31 class DragController; |
| 32 class DragSource; | 32 class DragSource; |
| 33 class DragTargetConnection; | 33 class DragTargetConnection; |
| 34 class EventDispatcherDelegate; | 34 class EventDispatcherDelegate; |
| 35 class ServerWindow; | 35 class ServerWindow; |
| 36 class WindowTree; | |
| 37 | 36 |
| 38 namespace test { | 37 namespace test { |
| 39 class EventDispatcherTestApi; | 38 class EventDispatcherTestApi; |
| 40 } | 39 } |
| 41 | 40 |
| 42 // Handles dispatching events to the right location as well as updating focus. | 41 // Handles dispatching events to the right location as well as updating focus. |
| 43 class EventDispatcher : public ServerWindowObserver, public DragCursorUpdater { | 42 class EventDispatcher : public ServerWindowObserver, public DragCursorUpdater { |
| 44 public: | 43 public: |
| 45 enum class AcceleratorMatchPhase { | 44 enum class AcceleratorMatchPhase { |
| 46 // Both pre and post should be considered. | 45 // Both pre and post should be considered. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 AcceleratorMatchPhase::ANY; | 271 AcceleratorMatchPhase::ANY; |
| 273 #endif | 272 #endif |
| 274 | 273 |
| 275 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); | 274 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); |
| 276 }; | 275 }; |
| 277 | 276 |
| 278 } // namespace ws | 277 } // namespace ws |
| 279 } // namespace ui | 278 } // namespace ui |
| 280 | 279 |
| 281 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ | 280 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| OLD | NEW |