Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: ui/aura/client/drag_drop_client.h

Issue 10919135: Move ash specific cursor code to CursorManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/cursor_client.h ('k') | ui/aura/desktop/desktop_cursor_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/aura/client/cursor_client.h ('k') | ui/aura/desktop/desktop_cursor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698