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

Unified Diff: ui/base/x/x11_util.cc

Issue 264713007: Add unittests for X11TopmostWindowFinder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/x11_util.h ('k') | ui/gfx/path_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index d892cb62bf4788aef057075fbadaee77968aa475..ddfb0aa66e19e52b03376a03ea194189c5a3cac5 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -886,6 +886,14 @@ bool SetIntArrayProperty(XID window,
return !err_tracker.FoundNewError();
}
+bool SetAtomProperty(XID window,
+ const std::string& name,
+ const std::string& type,
+ Atom value) {
+ std::vector<Atom> values(1, value);
+ return SetAtomArrayProperty(window, name, type, values);
+}
+
bool SetAtomArrayProperty(XID window,
const std::string& name,
const std::string& type,
« no previous file with comments | « ui/base/x/x11_util.h ('k') | ui/gfx/path_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698