Chromium Code Reviews| Index: services/ui/ws/current_drag_operation_source.h |
| diff --git a/services/ui/ws/current_drag_operation_source.h b/services/ui/ws/current_drag_operation_source.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6bebc86bfd00132e5dc19e8a6b732a79f021b3be |
| --- /dev/null |
| +++ b/services/ui/ws/current_drag_operation_source.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_ |
| +#define SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_ |
| + |
| +namespace ui { |
| +namespace ws { |
| + |
| +class DragTargetConnection; |
| +class ServerWindow; |
| +struct WindowId; |
| + |
| +// An interface implemented by the object that caused a CurrentDragOperation to |
| +// exist, and which acts as a delegate to it. |
| +class CurrentDragOperationSource { |
| + public: |
| + virtual ~CurrentDragOperationSource() {} |
| + |
| + // Called when a drag operation is completed. |
| + virtual void OnDragOver(bool success) = 0; |
|
sky
2016/09/06 21:11:27
On initial look I read this as 'drag moved ontop o
|
| + |
| + virtual ServerWindow* GetWindowById(const WindowId& id) = 0; |
| + |
| + virtual DragTargetConnection* GetDragTargetWithRoot( |
|
sky
2016/09/06 21:11:27
Document what this should do. I assume find deepes
|
| + const ServerWindow* window) = 0; |
| +}; |
| + |
| +} // namespace ws |
| +} // namespace ui |
| + |
| +#endif // SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_ |