| 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_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ | 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "services/ui/common/types.h" | 10 #include "services/ui/common/types.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Point; | 13 class Point; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 |
| 17 class Event; | 18 class Event; |
| 18 } | |
| 19 | 19 |
| 20 namespace ui { | |
| 21 namespace ws { | 20 namespace ws { |
| 22 | 21 |
| 23 class Accelerator; | 22 class Accelerator; |
| 24 class ServerWindow; | 23 class ServerWindow; |
| 25 | 24 |
| 26 // Used by EventDispatcher for mocking in tests. | 25 // Used by EventDispatcher for mocking in tests. |
| 27 class EventDispatcherDelegate { | 26 class EventDispatcherDelegate { |
| 28 public: | 27 public: |
| 29 enum class AcceleratorPhase { | 28 enum class AcceleratorPhase { |
| 30 PRE, | 29 PRE, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; | 79 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; |
| 81 | 80 |
| 82 protected: | 81 protected: |
| 83 virtual ~EventDispatcherDelegate() {} | 82 virtual ~EventDispatcherDelegate() {} |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } // namespace ws | 85 } // namespace ws |
| 87 } // namespace ui | 86 } // namespace ui |
| 88 | 87 |
| 89 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ | 88 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| OLD | NEW |