OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |