| 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 <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 unsigned long event_time); | 194 unsigned long event_time); |
| 195 void SendXdndDrop(::Window dest_window); | 195 void SendXdndDrop(::Window dest_window); |
| 196 | 196 |
| 197 // Creates a widget for the user to drag around. | 197 // Creates a widget for the user to drag around. |
| 198 void CreateDragWidget(const gfx::ImageSkia& image); | 198 void CreateDragWidget(const gfx::ImageSkia& image); |
| 199 | 199 |
| 200 // Returns true if |image| has any visible regions (defined as having a pixel | 200 // Returns true if |image| has any visible regions (defined as having a pixel |
| 201 // with alpha > 32). | 201 // with alpha > 32). |
| 202 bool IsValidDragImage(const gfx::ImageSkia& image); | 202 bool IsValidDragImage(const gfx::ImageSkia& image); |
| 203 | 203 |
| 204 // A nested message loop that notifies this object of events through the | 204 // A nested run loop that notifies this object of events through the |
| 205 // X11MoveLoopDelegate interface. | 205 // X11MoveLoopDelegate interface. |
| 206 std::unique_ptr<X11MoveLoop> move_loop_; | 206 std::unique_ptr<X11MoveLoop> move_loop_; |
| 207 | 207 |
| 208 aura::Window* root_window_; | 208 aura::Window* root_window_; |
| 209 | 209 |
| 210 DesktopNativeCursorManager* cursor_manager_; | 210 DesktopNativeCursorManager* cursor_manager_; |
| 211 | 211 |
| 212 Display* xdisplay_; | 212 Display* xdisplay_; |
| 213 ::Window xwindow_; | 213 ::Window xwindow_; |
| 214 | 214 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 gfx::Vector2d drag_widget_offset_; | 286 gfx::Vector2d drag_widget_offset_; |
| 287 | 287 |
| 288 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_; | 288 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_; |
| 289 | 289 |
| 290 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); | 290 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace views | 293 } // namespace views |
| 294 | 294 |
| 295 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 295 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
| OLD | NEW |