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

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: sync 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class RootWindow;
16 }
17
18 namespace views {
19 class DesktopDragDragSourceWin;
20 class DesktopDropTargetWin;
21
22 class VIEWS_EXPORT DesktopDragDropClientWin
23 : public aura::client::DragDropClient {
24 public:
25 DesktopDragDropClientWin(aura::RootWindow* root_window, HWND window);
26 virtual ~DesktopDragDropClientWin();
27
28 // Overridden from aura::client::DragDropClient:
29 virtual int StartDragAndDrop(
30 const ui::OSExchangeData& data,
31 aura::RootWindow* root_window,
32 aura::Window* source_window,
33 const gfx::Point& root_location,
34 int operation,
35 ui::DragDropTypes::DragEventSource source) OVERRIDE;
36 virtual void DragUpdate(aura::Window* target,
37 const ui::LocatedEvent& event) OVERRIDE;
38 virtual void Drop(aura::Window* target,
39 const ui::LocatedEvent& event) OVERRIDE;
40 virtual void DragCancel() OVERRIDE;
41 virtual bool IsDragDropInProgress() OVERRIDE;
42
43 void OnNativeWidgetDestroying(HWND window);
44
45 private:
46 bool drag_drop_in_progress_;
47
48 int drag_operation_;
49
50 scoped_refptr<ui::DragSource> drag_source_;
51
52 scoped_refptr<DesktopDropTargetWin> drop_target_;
53
54 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin);
55 };
56
57 } // namespace views
58
59 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698