OLD | NEW |
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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 class DropTargetEvent; | 35 class DropTargetEvent; |
36 class OSExchangeData; | 36 class OSExchangeData; |
37 class OSExchangeDataProviderAuraX11; | 37 class OSExchangeDataProviderAuraX11; |
38 class SelectionFormatMap; | 38 class SelectionFormatMap; |
39 } | 39 } |
40 | 40 |
41 namespace views { | 41 namespace views { |
42 class DesktopNativeCursorManager; | 42 class DesktopNativeCursorManager; |
43 | 43 |
44 // Implements drag and drop on X11 for aura. On one side, this class takes raw | 44 // Implements drag and drop on X11 for aura. On one side, this class takes raw |
45 // X11 events forwarded from DesktopRootWindowHostLinux, while on the other, it | 45 // X11 events forwarded from DesktopWindowTreeHostLinux, while on the other, it |
46 // handles the views drag events. | 46 // handles the views drag events. |
47 class VIEWS_EXPORT DesktopDragDropClientAuraX11 | 47 class VIEWS_EXPORT DesktopDragDropClientAuraX11 |
48 : public aura::client::DragDropClient, | 48 : public aura::client::DragDropClient, |
49 public aura::WindowObserver, | 49 public aura::WindowObserver, |
50 public X11WholeScreenMoveLoopDelegate { | 50 public X11WholeScreenMoveLoopDelegate { |
51 public: | 51 public: |
52 DesktopDragDropClientAuraX11( | 52 DesktopDragDropClientAuraX11( |
53 aura::Window* root_window, | 53 aura::Window* root_window, |
54 views::DesktopNativeCursorManager* cursor_manager, | 54 views::DesktopNativeCursorManager* cursor_manager, |
55 Display* xdisplay, | 55 Display* xdisplay, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 gfx::NativeCursor grab_cursor_; | 214 gfx::NativeCursor grab_cursor_; |
215 gfx::NativeCursor copy_grab_cursor_; | 215 gfx::NativeCursor copy_grab_cursor_; |
216 gfx::NativeCursor move_grab_cursor_; | 216 gfx::NativeCursor move_grab_cursor_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); | 218 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); |
219 }; | 219 }; |
220 | 220 |
221 } // namespace views | 221 } // namespace views |
222 | 222 |
223 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 223 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
OLD | NEW |