| 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 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ::Atom DragOperationToAtom(int drag_operation); | 121 ::Atom DragOperationToAtom(int drag_operation); |
| 122 | 122 |
| 123 // Converts a single action atom to a drag operation. | 123 // Converts a single action atom to a drag operation. |
| 124 int AtomToDragOperation(::Atom atom); | 124 int AtomToDragOperation(::Atom atom); |
| 125 | 125 |
| 126 // During the blocking StartDragAndDrop() call, this converts the views-style | 126 // During the blocking StartDragAndDrop() call, this converts the views-style |
| 127 // |drag_operation_| bitfield into a vector of Atoms to offer to other | 127 // |drag_operation_| bitfield into a vector of Atoms to offer to other |
| 128 // processes. | 128 // processes. |
| 129 std::vector< ::Atom> GetOfferedDragOperations(); | 129 std::vector< ::Atom> GetOfferedDragOperations(); |
| 130 | 130 |
| 131 // This returns a newly allocated copy of the data we're offering in this | 131 // This returns a representation of the data we're offering in this |
| 132 // drag. This is done to bypass an asynchronous roundtrip with the X11 | 132 // drag. This is done to bypass an asynchronous roundtrip with the X11 |
| 133 // server. | 133 // server. |
| 134 scoped_ptr<ui::SelectionFormatMap> CloneFormatMap() const; | 134 ui::SelectionFormatMap GetFormatMap() const; |
| 135 | 135 |
| 136 // Handling XdndPosition can be paused while waiting for more data; this is | 136 // Handling XdndPosition can be paused while waiting for more data; this is |
| 137 // called either synchronously from OnXdndPosition, or asynchronously after | 137 // called either synchronously from OnXdndPosition, or asynchronously after |
| 138 // we've received data requested from the other window. | 138 // we've received data requested from the other window. |
| 139 void CompleteXdndPosition(::Window source_window, | 139 void CompleteXdndPosition(::Window source_window, |
| 140 const gfx::Point& screen_point); | 140 const gfx::Point& screen_point); |
| 141 | 141 |
| 142 void SendXdndEnter(::Window dest_window); | 142 void SendXdndEnter(::Window dest_window); |
| 143 void SendXdndLeave(::Window dest_window); | 143 void SendXdndLeave(::Window dest_window); |
| 144 void SendXdndPosition(::Window dest_window, | 144 void SendXdndPosition(::Window dest_window, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 std::map< ::Window, ::Atom> negotiated_operation_; | 217 std::map< ::Window, ::Atom> negotiated_operation_; |
| 218 | 218 |
| 219 static std::map< ::Window, DesktopDragDropClientAuraX11*> g_live_client_map; | 219 static std::map< ::Window, DesktopDragDropClientAuraX11*> g_live_client_map; |
| 220 | 220 |
| 221 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); | 221 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 } // namespace views | 224 } // namespace views |
| 225 | 225 |
| 226 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 226 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
| OLD | NEW |