| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ | 5 #ifndef WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ |
| 6 #define WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ | 6 #define WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <tr1/memory> | 9 #include <tr1/memory> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Stack all transient windows' composited and client windows in the | 76 // Stack all transient windows' composited and client windows in the |
| 77 // order dictated by |stacked_transients_|. If | 77 // order dictated by |stacked_transients_|. If |
| 78 // |stack_directly_above_owner| is false, then we stack the transients at | 78 // |stack_directly_above_owner| is false, then we stack the transients at |
| 79 // StackingManager::LAYER_ACTIVE_TRANSIENT_WINDOW instead of directly | 79 // StackingManager::LAYER_ACTIVE_TRANSIENT_WINDOW instead of directly |
| 80 // above |owner_win_|. | 80 // above |owner_win_|. |
| 81 void ApplyStackingForAllWindows(bool stack_directly_above_owner); | 81 void ApplyStackingForAllWindows(bool stack_directly_above_owner); |
| 82 | 82 |
| 83 // Handle a ConfigureRequest event about one of our transient windows. | 83 // Handle a ConfigureRequest event about one of our transient windows. |
| 84 void HandleConfigureRequest(Window* transient_win, | 84 void HandleConfigureRequest(Window* transient_win, |
| 85 int req_x, int req_y, | 85 const Rect& requested_bounds); |
| 86 int req_width, int req_height); | |
| 87 | 86 |
| 88 // Close all transient windows (which should eventually result in the | 87 // Close all transient windows (which should eventually result in the |
| 89 // owner receiving a bunch of UnmapNotify events and calling | 88 // owner receiving a bunch of UnmapNotify events and calling |
| 90 // RemoveWindow() for each transient). | 89 // RemoveWindow() for each transient). |
| 91 void CloseAllWindows(); | 90 void CloseAllWindows(); |
| 92 | 91 |
| 93 // Show or hide all transient windows in this collection. | 92 // Show or hide all transient windows in this collection. |
| 94 void Show(); | 93 void Show(); |
| 95 void Hide(); | 94 void Hide(); |
| 96 | 95 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Should we try to constrain transient windows' bounds onscreen, regardless | 197 // Should we try to constrain transient windows' bounds onscreen, regardless |
| 199 // of the position of the owner? | 198 // of the position of the owner? |
| 200 bool constrain_onscreen_; | 199 bool constrain_onscreen_; |
| 201 | 200 |
| 202 DISALLOW_COPY_AND_ASSIGN(TransientWindowCollection); | 201 DISALLOW_COPY_AND_ASSIGN(TransientWindowCollection); |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 } // end namespace window_manager | 204 } // end namespace window_manager |
| 206 | 205 |
| 207 #endif // WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ | 206 #endif // WINDOW_MANAGER_TRANSIENT_WINDOW_COLLECTION_H_ |
| OLD | NEW |