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

Side by Side Diff: app/x11_util.h

Issue 2716007: Linux: Catch X errors and force a crash.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | app/x11_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_X11_UTIL_H_ 5 #ifndef APP_X11_UTIL_H_
6 #define APP_X11_UTIL_H_ 6 #define APP_X11_UTIL_H_
7 7
8 // This file declares utility functions for X11 (Linux only). 8 // This file declares utility functions for X11 (Linux only).
9 // 9 //
10 // These functions do not require the Xlib headers to be included (which is why 10 // These functions do not require the Xlib headers to be included (which is why
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool GetWindowManagerName(std::string* name); 163 bool GetWindowManagerName(std::string* name);
164 164
165 // Grabs a snapshot of the designated window and stores a PNG representation 165 // Grabs a snapshot of the designated window and stores a PNG representation
166 // into a byte vector. 166 // into a byte vector.
167 void GrabWindowSnapshot(GtkWindow* gdk_window, 167 void GrabWindowSnapshot(GtkWindow* gdk_window,
168 std::vector<unsigned char>* png_representation); 168 std::vector<unsigned char>* png_representation);
169 169
170 // Change desktop for |window| to the desktop of |destination| window. 170 // Change desktop for |window| to the desktop of |destination| window.
171 bool ChangeWindowDesktop(XID window, XID destination); 171 bool ChangeWindowDesktop(XID window, XID destination);
172 172
173 // Sets the X Error Handlers so we can catch X errors and crash.
174 void SetX11ErrorHandlers();
175
173 } // namespace x11_util 176 } // namespace x11_util
174 177
175 #endif // APP_X11_UTIL_H_ 178 #endif // APP_X11_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | app/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698