OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_TARGETER_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_ |
6 #define SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_ | 6 #define SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 class Point; | 11 class Point; |
12 } | 12 } |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 namespace ws { | 15 namespace ws { |
16 class ServerWindow; | 16 class ServerWindow; |
17 | 17 |
18 // Used by EventTargeter to talk to WindowManagerState. | 18 // Used by EventTargeter to talk to WindowManagerState. |
19 class EventTargeterDelegate { | 19 class EventTargeterDelegate { |
20 public: | 20 public: |
21 // Calls EventDispatcherDelegate::GetRootWindowContaining, see | 21 // Calls EventDispatcherDelegate::GetRootWindowContaining, see |
22 // event_dispatcher_delegate.h for details. | 22 // event_dispatcher_delegate.h for details. |
23 virtual ServerWindow* GetRootWindowContaining(gfx::Point* location_in_display, | 23 virtual ServerWindow* GetRootWindowContaining(gfx::Point* location_in_display, |
24 int64_t* display_id) = 0; | 24 int64_t* display_id) = 0; |
25 | 25 |
| 26 // Calls EventDispatcherDelegate::ProcessNextAvailableEvent, see |
| 27 // event_dispatcher_delegate.h for details. |
| 28 virtual void ProcessNextAvailableEvent() = 0; |
| 29 |
26 protected: | 30 protected: |
27 virtual ~EventTargeterDelegate() {} | 31 virtual ~EventTargeterDelegate() {} |
28 }; | 32 }; |
29 | 33 |
30 } // namespace ws | 34 } // namespace ws |
31 } // namespace ui | 35 } // namespace ui |
32 | 36 |
33 #endif // SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_ | 37 #endif // SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_ |
OLD | NEW |