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

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

Issue 12377035: Remove GetOutputNames from x11_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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') | no next file » | 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 ad590977dbc80ddb9b893613c8ba9fcd3cc7523a..994c9c70dd59ddd94434eb21f43283355c0bf2c5 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -1488,23 +1488,6 @@ bool ParseOutputOverscanFlag(const unsigned char* prop,
return false;
}
-std::vector<std::string> GetOutputNames(const std::vector<XID>& output_ids) {
- std::vector<std::string> names;
- Display* display = GetXDisplay();
- Window root_window = DefaultRootWindow(display);
- XRRScreenResources* screen_resources =
- XRRGetScreenResources(display, root_window);
- for (std::vector<XID>::const_iterator iter = output_ids.begin();
- iter != output_ids.end(); ++iter) {
- XRROutputInfo* output =
- XRRGetOutputInfo(display, screen_resources, *iter);
- names.push_back(std::string(output->name));
- XRRFreeOutputInfo(output);
- }
- XRRFreeScreenResources(screen_resources);
- return names;
-}
-
bool GetWindowManagerName(std::string* wm_name) {
DCHECK(wm_name);
int wm_window = 0;
« no previous file with comments | « ui/base/x/x11_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698