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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h

Issue 17029020: linux_aura: Redo how memory is handled in clipboard/drag code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for sky; ptal Created 7 years, 5 months 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/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698