Chromium Code Reviews| 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" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_ |
| OLD | NEW |