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

Unified Diff: ui/base/x/selection_utils.h

Issue 16271006: Drag on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Document Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/x/selection_requestor.cc ('k') | ui/base/x/selection_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_utils.h
diff --git a/ui/base/x/selection_utils.h b/ui/base/x/selection_utils.h
index 741fd819f9bc84f9bbb874a1570cddba871df6d9..d7abf3ff4d026ef0dc5bd6340efc322697d151ea 100644
--- a/ui/base/x/selection_utils.h
+++ b/ui/base/x/selection_utils.h
@@ -18,6 +18,7 @@
#include "ui/base/x/x11_atom_cache.h"
namespace ui {
+class SelectionData;
class X11AtomCache;
extern const char kMimeTypeMozillaURL[];
@@ -53,6 +54,16 @@ class UI_EXPORT SelectionFormatMap {
// us.
void Insert(::Atom atom, char* data, size_t size);
+ // Returns the first of the requested_types or NULL if missing.
+ ui::SelectionData* GetFirstOf(
+ const std::vector< ::Atom>& requested_types) const;
+
+ // Returns all the selected types.
+ std::vector< ::Atom> GetTypes() const;
+
+ // Creates a copy of the selection data.
+ scoped_ptr<SelectionFormatMap> Clone() const;
+
// Pass through to STL map. Only allow non-mutation access.
const_iterator begin() const { return data_.begin(); }
const_iterator end() const { return data_.end(); }
@@ -71,7 +82,7 @@ class UI_EXPORT SelectionFormatMap {
class UI_EXPORT SelectionData {
public:
// |atom_cache| is still owned by caller.
- explicit SelectionData(Display* x_display);
+ SelectionData();
~SelectionData();
::Atom type() const { return type_; }
« no previous file with comments | « ui/base/x/selection_requestor.cc ('k') | ui/base/x/selection_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698