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

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: 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const ui::Event& event, 57 const ui::Event& event,
58 Accelerator* accelerator) = 0; 58 Accelerator* accelerator) = 0;
59 59
60 // Returns the id of the client to send events to. |in_nonclient_area| is 60 // Returns the id of the client to send events to. |in_nonclient_area| is
61 // true if the event occurred in the non-client area of the window. 61 // true if the event occurred in the non-client area of the window.
62 virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window, 62 virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window,
63 bool in_nonclient_area) = 0; 63 bool in_nonclient_area) = 0;
64 64
65 // Returns the window to start searching from at the specified location, or 65 // Returns the window to start searching from at the specified location, or
66 // null if there is a no window containing |location|. 66 // null if there is a no window containing |location|.
67 virtual ServerWindow* GetRootWindowContaining(const gfx::Point& location) = 0; 67 virtual ServerWindow* GetRootWindowContaining(gfx::Point* location) = 0;
sky 2016/08/11 20:58:04 Update description about location. In particular t
kylechar 2016/08/12 16:09:11 Done.
68 68
69 // Called when event dispatch could not find a target. OnAccelerator may still 69 // Called when event dispatch could not find a target. OnAccelerator may still
70 // be called. 70 // be called.
71 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; 71 virtual void OnEventTargetNotFound(const ui::Event& event) = 0;
72 72
73 protected: 73 protected:
74 virtual ~EventDispatcherDelegate() {} 74 virtual ~EventDispatcherDelegate() {}
75 }; 75 };
76 76
77 } // namespace ws 77 } // namespace ws
78 } // namespace ui 78 } // namespace ui
79 79
80 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_ 80 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698