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

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

Issue 10855159: Support Drag and Drop across displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DragDropTrackerTest on Win Created 8 years, 4 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
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 13 matching lines...) Expand all
24 24
25 // An interface implemented by an object that controls a drag and drop session. 25 // An interface implemented by an object that controls a drag and drop session.
26 class AURA_EXPORT DragDropClient { 26 class AURA_EXPORT DragDropClient {
27 public: 27 public:
28 virtual ~DragDropClient() {} 28 virtual ~DragDropClient() {}
29 29
30 // Initiates a drag and drop session. Returns the drag operation that was 30 // Initiates a drag and drop session. Returns the drag operation that was
31 // applied at the end of the drag drop session. |root_location| is in the 31 // applied at the end of the drag drop session. |root_location| is in the
32 // RootWindow's coordinate system. 32 // RootWindow's coordinate system.
33 virtual int StartDragAndDrop(const ui::OSExchangeData& data, 33 virtual int StartDragAndDrop(const ui::OSExchangeData& data,
34 aura::RootWindow* root_window,
34 const gfx::Point& root_location, 35 const gfx::Point& root_location,
35 int operation) = 0; 36 int operation) = 0;
36 37
37 // Called when mouse is dragged during a drag and drop. 38 // Called when mouse is dragged during a drag and drop.
38 virtual void DragUpdate(aura::Window* target, 39 virtual void DragUpdate(aura::Window* target,
39 const ui::LocatedEvent& event) = 0; 40 const ui::LocatedEvent& event) = 0;
40 41
41 // Called when mouse is released during a drag and drop. 42 // Called when mouse is released during a drag and drop.
42 virtual void Drop(aura::Window* target, 43 virtual void Drop(aura::Window* target,
43 const ui::LocatedEvent& event) = 0; 44 const ui::LocatedEvent& event) = 0;
(...skipping 11 matching lines...) Expand all
55 }; 56 };
56 57
57 AURA_EXPORT void SetDragDropClient(RootWindow* root_window, 58 AURA_EXPORT void SetDragDropClient(RootWindow* root_window,
58 DragDropClient* client); 59 DragDropClient* client);
59 AURA_EXPORT DragDropClient* GetDragDropClient(RootWindow* root_window); 60 AURA_EXPORT DragDropClient* GetDragDropClient(RootWindow* root_window);
60 61
61 } // namespace client 62 } // namespace client
62 } // namespace aura 63 } // namespace aura
63 64
64 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_ 65 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698