| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_BASE_X_X11_UTIL_H_ | 5 #ifndef UI_BASE_X_X11_UTIL_H_ |
| 6 #define UI_BASE_X_X11_UTIL_H_ | 6 #define UI_BASE_X_X11_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file declares utility functions for X11 (Linux only). | 9 // This file declares utility functions for X11 (Linux only). |
| 10 // | 10 // |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 protected: | 182 protected: |
| 183 virtual ~EnumerateWindowsDelegate() {} | 183 virtual ~EnumerateWindowsDelegate() {} |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 // Enumerates all windows in the current display. Will recurse into child | 186 // Enumerates all windows in the current display. Will recurse into child |
| 187 // windows up to a depth of |max_depth|. | 187 // windows up to a depth of |max_depth|. |
| 188 UI_EXPORT bool EnumerateAllWindows(EnumerateWindowsDelegate* delegate, | 188 UI_EXPORT bool EnumerateAllWindows(EnumerateWindowsDelegate* delegate, |
| 189 int max_depth); | 189 int max_depth); |
| 190 | 190 |
| 191 // Enumerates the top-level windows of the current display. |
| 192 UI_EXPORT void EnumerateTopLevelWindows(ui::EnumerateWindowsDelegate* delegate); |
| 193 |
| 191 // Returns all children windows of a given window in top-to-bottom stacking | 194 // Returns all children windows of a given window in top-to-bottom stacking |
| 192 // order. | 195 // order. |
| 193 UI_EXPORT bool GetXWindowStack(XID window, std::vector<XID>* windows); | 196 UI_EXPORT bool GetXWindowStack(XID window, std::vector<XID>* windows); |
| 194 | 197 |
| 195 // Restack a window in relation to one of its siblings. If |above| is true, | 198 // Restack a window in relation to one of its siblings. If |above| is true, |
| 196 // |window| will be stacked directly above |sibling|; otherwise it will stacked | 199 // |window| will be stacked directly above |sibling|; otherwise it will stacked |
| 197 // directly below it. Both windows must be immediate children of the same | 200 // directly below it. Both windows must be immediate children of the same |
| 198 // window. | 201 // window. |
| 199 void RestackWindow(XID window, XID sibling, bool above); | 202 void RestackWindow(XID window, XID sibling, bool above); |
| 200 | 203 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 293 |
| 291 private: | 294 private: |
| 292 char* string_; | 295 char* string_; |
| 293 | 296 |
| 294 DISALLOW_COPY_AND_ASSIGN(XScopedString); | 297 DISALLOW_COPY_AND_ASSIGN(XScopedString); |
| 295 }; | 298 }; |
| 296 | 299 |
| 297 } // namespace ui | 300 } // namespace ui |
| 298 | 301 |
| 299 #endif // UI_BASE_X_X11_UTIL_H_ | 302 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |