| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ | 5 #ifndef UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ | 6 #define UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
| 7 | 7 |
| 8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Called when mouse is released during a drag and drop. | 42 // Called when mouse is released during a drag and drop. |
| 43 virtual void Drop(aura::Window* target, | 43 virtual void Drop(aura::Window* target, |
| 44 const ui::LocatedEvent& event) = 0; | 44 const ui::LocatedEvent& event) = 0; |
| 45 | 45 |
| 46 // Called when a drag and drop session is cancelled. | 46 // Called when a drag and drop session is cancelled. |
| 47 virtual void DragCancel() = 0; | 47 virtual void DragCancel() = 0; |
| 48 | 48 |
| 49 // Returns true if a drag and drop session is in progress. | 49 // Returns true if a drag and drop session is in progress. |
| 50 virtual bool IsDragDropInProgress() = 0; | 50 virtual bool IsDragDropInProgress() = 0; |
| 51 | |
| 52 // Returns the current cursor according to the appropriate drag effect. This | |
| 53 // should only be called if IsDragDropInProgress() returns true. If it is | |
| 54 // called otherwise, the returned cursor is arbitrary. | |
| 55 virtual gfx::NativeCursor GetDragCursor() = 0; | |
| 56 }; | 51 }; |
| 57 | 52 |
| 58 AURA_EXPORT void SetDragDropClient(RootWindow* root_window, | 53 AURA_EXPORT void SetDragDropClient(RootWindow* root_window, |
| 59 DragDropClient* client); | 54 DragDropClient* client); |
| 60 AURA_EXPORT DragDropClient* GetDragDropClient(RootWindow* root_window); | 55 AURA_EXPORT DragDropClient* GetDragDropClient(RootWindow* root_window); |
| 61 | 56 |
| 62 } // namespace client | 57 } // namespace client |
| 63 } // namespace aura | 58 } // namespace aura |
| 64 | 59 |
| 65 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ | 60 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ |
| OLD | NEW |