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

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

Issue 2237003002: Find display root ServerWindow for located events in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_display
Patch Set: Fixes. Created 4 years, 4 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
OLDNEW
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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ClientSpecificId client_id, 59 ClientSpecificId client_id,
60 const ui::Event& event, 60 const ui::Event& event,
61 Accelerator* accelerator) = 0; 61 Accelerator* accelerator) = 0;
62 62
63 // Returns the id of the client to send events to. |in_nonclient_area| is 63 // Returns the id of the client to send events to. |in_nonclient_area| is
64 // true if the event occurred in the non-client area of the window. 64 // true if the event occurred in the non-client area of the window.
65 virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window, 65 virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window,
66 bool in_nonclient_area) = 0; 66 bool in_nonclient_area) = 0;
67 67
68 // Returns the window to start searching from at the specified location, or 68 // Returns the window to start searching from at the specified location, or
69 // null if there is a no window containing |location|. 69 // null if there is a no window containing |location|. |location| should be in
70 virtual ServerWindow* GetRootWindowContaining(const gfx::Point& location) = 0; 70 // screen coordinates and if a window is returned then |location| will be
71 // updated to be relative to the origin of the window.
72 virtual ServerWindow* GetRootWindowContaining(gfx::Point* location) = 0;
71 73
72 // Called when event dispatch could not find a target. OnAccelerator may still 74 // Called when event dispatch could not find a target. OnAccelerator may still
73 // be called. 75 // be called.
74 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; 76 virtual void OnEventTargetNotFound(const ui::Event& event) = 0;
75 77
76 protected: 78 protected:
77 virtual ~EventDispatcherDelegate() {} 79 virtual ~EventDispatcherDelegate() {}
78 }; 80 };
79 81
80 } // namespace ws 82 } // namespace ws
81 } // namespace ui 83 } // namespace ui
82 84
83 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ 85 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698