Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1261)

Side by Side Diff: services/ui/ws/event_targeter_delegate.h

Issue 2884463002: Make event-targeting asynchronous in window server. (Closed)
Patch Set: comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/event_targeter.cc ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « services/ui/ws/event_targeter.cc ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698