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

Unified Diff: ui/base/x/x11_util.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_utils.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.h
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index 940875a2bafbf42fdf8c96bca29910d540edadea..592e48a0d3d4002f40c3be540a4a7025ca1325c5 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -164,6 +164,15 @@ UI_EXPORT bool WindowContainsPoint(XID window, gfx::Point screen_loc);
// Return true if |window| has any property with |property_name|.
UI_EXPORT bool PropertyExists(XID window, const std::string& property_name);
+// Returns the raw bytes from a property with minimal
+// interpretation. |out_data| should be freed by XFree() after use.
+UI_EXPORT bool GetRawBytesOfProperty(XID window,
+ Atom property,
+ unsigned char** out_data,
+ size_t* out_data_bytes,
+ size_t* out_data_items,
+ Atom* out_type);
+
// Get the value of an int, int array, atom array or string property. On
// success, true is returned and the value is stored in |value|.
//
@@ -171,6 +180,8 @@ UI_EXPORT bool PropertyExists(XID window, const std::string& property_name);
// should accept an Atom instead of a string.
UI_EXPORT bool GetIntProperty(XID window, const std::string& property_name,
int* value);
+UI_EXPORT bool GetXIDProperty(XID window, const std::string& property_name,
+ XID* value);
UI_EXPORT bool GetIntArrayProperty(XID window, const std::string& property_name,
std::vector<int>* value);
UI_EXPORT bool GetAtomArrayProperty(XID window,
@@ -179,6 +190,7 @@ UI_EXPORT bool GetAtomArrayProperty(XID window,
UI_EXPORT bool GetStringProperty(
XID window, const std::string& property_name, std::string* value);
+// These setters all make round trips.
UI_EXPORT bool SetIntProperty(XID window,
const std::string& name,
const std::string& type,
@@ -187,6 +199,10 @@ UI_EXPORT bool SetIntArrayProperty(XID window,
const std::string& name,
const std::string& type,
const std::vector<int>& value);
+UI_EXPORT bool SetAtomArrayProperty(XID window,
+ const std::string& name,
+ const std::string& type,
+ const std::vector<Atom>& value);
// Gets the X atom for default display corresponding to atom_name.
Atom GetAtom(const char* atom_name);
« no previous file with comments | « ui/base/x/selection_utils.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698