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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h

Issue 11444013: Get drag and drop working for win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move DropTargetWin to DesktopDragDropClientWin Created 8 years 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "ui/aura/client/drag_drop_client.h"
11 #include "ui/views/views_export.h"
12
13 namespace ui {
14 class DragSource;
15 }
16
17 namespace views {
18 class DesktopDragDragSourceWin;
19 class DropTargetWin;
20
21 namespace internal {
22 class RootView;
23 }
24
25 class VIEWS_EXPORT DesktopDragDropClientWin
26 : public aura::client::DragDropClient {
27 public:
28 DesktopDragDropClientWin();
29 virtual ~DesktopDragDropClientWin();
30
31 // Overridden from aura::client::DragDropClient:
32 virtual int StartDragAndDrop(
33 const ui::OSExchangeData& data,
34 aura::RootWindow* root_window,
35 aura::Window* source_window,
36 const gfx::Point& root_location,
37 int operation,
38 ui::DragDropTypes::DragEventSource source) OVERRIDE;
39 virtual void DragUpdate(aura::Window* target,
40 const ui::LocatedEvent& event) OVERRIDE;
41 virtual void Drop(aura::Window* target,
42 const ui::LocatedEvent& event) OVERRIDE;
43 virtual void DragCancel() OVERRIDE;
44 virtual bool IsDragDropInProgress() OVERRIDE;
45
46 void OnNativeWidgetCreated(HWND window, internal::RootView* root_view);
47 void OnNativeWidgetDestroying(HWND window);
48
49 private:
50 bool drag_drop_in_progress_;
51
52 int drag_operation_;
53
54 scoped_refptr<ui::DragSource> drag_source_;
55
56 scoped_refptr<DropTargetWin> drop_target_;
57
58 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin);
59 };
60
61 } // namespace views
62
63 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698