OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/aura/event.h" |
| 11 |
| 12 namespace ui { |
| 13 class OSExchangeData; |
| 14 } |
| 15 |
| 16 namespace aura { |
| 17 |
| 18 class Window; |
| 19 |
| 20 // An interface implemented by an object that controls a drag and drop session. |
| 21 class AURA_EXPORT DragDropClient { |
| 22 public: |
| 23 virtual ~DragDropClient() {} |
| 24 |
| 25 // Initiates a drag and drop session |
| 26 virtual void StartDragAndDrop(const ui::OSExchangeData& data, |
| 27 int operation) = 0; |
| 28 |
| 29 // Called when mouse is dragged during a drag and drop. |
| 30 virtual void DragUpdate(aura::Window* target, const MouseEvent& event) = 0; |
| 31 |
| 32 // Called when mouse is released during a drag and drop. |
| 33 virtual void Drop(aura::Window* target, const MouseEvent& event) = 0; |
| 34 |
| 35 // Called when a drag and drop session is cancelled. |
| 36 virtual void DragCancel() = 0; |
| 37 }; |
| 38 |
| 39 } // namespace aura |
| 40 |
| 41 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
OLD | NEW |