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

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: 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
20 class VIEWS_EXPORT DesktopDragDropClientWin
21 : public aura::client::DragDropClient {
22 public:
23 DesktopDragDropClientWin();
24 virtual ~DesktopDragDropClientWin();
25
26 // Overridden from aura::client::DragDropClient:
27 virtual int StartDragAndDrop(
28 const ui::OSExchangeData& data,
29 aura::RootWindow* root_window,
30 aura::Window* source_window,
31 const gfx::Point& root_location,
32 int operation,
33 ui::DragDropTypes::DragEventSource source) OVERRIDE;
34 virtual void DragUpdate(aura::Window* target,
35 const ui::LocatedEvent& event) OVERRIDE;
36 virtual void Drop(aura::Window* target,
37 const ui::LocatedEvent& event) OVERRIDE;
38 virtual void DragCancel() OVERRIDE;
39 virtual bool IsDragDropInProgress() OVERRIDE;
40
41 private:
42 bool drag_drop_in_progress_;
43
44 int drag_operation_;
45
46 scoped_refptr<ui::DragSource> drag_source_;
47
48 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin);
49 };
50
51 } // namespace views
52
53 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698