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_DRAG_DROP_CONTROLLER_H_ |
| 6 #define UI_AURA_DRAG_DROP_CONTROLLER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/aura/event.h" |
| 11 #include "ui/base/dragdrop/os_exchange_data.h" |
| 12 #include "ui/gfx/point.h" |
| 13 |
| 14 namespace aura { |
| 15 |
| 16 class MouseEvent; |
| 17 |
| 18 class AURA_EXPORT DragDropController { |
| 19 public: |
| 20 virtual ~DragDropController() {} |
| 21 |
| 22 virtual void StartDragAndDrop(const ui::OSExchangeData& data, |
| 23 int operation, |
| 24 const gfx::Point& location) = 0; |
| 25 |
| 26 virtual void DragUpdate(const MouseEvent& event) = 0; |
| 27 |
| 28 virtual void Drop(const MouseEvent& event) = 0; |
| 29 }; |
| 30 |
| 31 } // namespace aura |
| 32 |
| 33 #endif // UI_AURA_DRAG_DROP_CONTROLLER_H_ |
OLD | NEW |