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 COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 // holding capture. The delegate should not change native display capture. | 34 // holding capture. The delegate should not change native display capture. |
| 35 // ReleaseNativeCapture is invoked if appropriate. | 35 // ReleaseNativeCapture is invoked if appropriate. |
| 36 virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0; | 36 virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0; |
| 37 | 37 |
| 38 // |in_nonclient_area| is true if the event occurred in the non-client area. | 38 // |in_nonclient_area| is true if the event occurred in the non-client area. |
| 39 virtual void DispatchInputEventToWindow(ServerWindow* target, | 39 virtual void DispatchInputEventToWindow(ServerWindow* target, |
| 40 bool in_nonclient_area, | 40 bool in_nonclient_area, |
| 41 const ui::Event& event, | 41 const ui::Event& event, |
| 42 Accelerator* accelerator) = 0; | 42 Accelerator* accelerator) = 0; |
| 43 | 43 |
| 44 // Called when event dispatch could not find a target. | |
|
sky
2016/04/22 20:18:48
Clarify that OnAccelerator may still be called.
James Cook
2016/04/22 21:25:08
Done.
| |
| 45 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; | |
| 46 | |
| 44 protected: | 47 protected: |
| 45 virtual ~EventDispatcherDelegate() {} | 48 virtual ~EventDispatcherDelegate() {} |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 } // namespace ws | 51 } // namespace ws |
| 49 } // namespace mus | 52 } // namespace mus |
| 50 | 53 |
| 51 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ | 54 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ |
| OLD | NEW |