| 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <X11/extensions/shape.h> | 10 #include <X11/extensions/shape.h> |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // X11 things | 268 // X11 things |
| 269 // The display and the native X window hosting the root window. | 269 // The display and the native X window hosting the root window. |
| 270 XDisplay* xdisplay_; | 270 XDisplay* xdisplay_; |
| 271 ::Window xwindow_; | 271 ::Window xwindow_; |
| 272 | 272 |
| 273 // The native root window. | 273 // The native root window. |
| 274 ::Window x_root_window_; | 274 ::Window x_root_window_; |
| 275 | 275 |
| 276 ui::X11AtomCache atom_cache_; | 276 ui::X11AtomCache atom_cache_; |
| 277 | 277 |
| 278 // Is the window mapped to the screen? | 278 // Whether the window is mapped with respect to the X11. |
| 279 bool window_mapped_; | 279 bool window_mapped_; |
| 280 | 280 |
| 281 // Should we wait for an UnmapNotify before trying to remap the window? | 281 // Whether the window is visible with respect to Aura. |
| 282 // If |wait_for_unmap_| is true, we have sent an XUnmapWindow request to the | 282 bool is_visible_; |
| 283 // server and have yet to receive an UnmapNotify. | |
| 284 bool wait_for_unmap_; | |
| 285 | 283 |
| 286 // The bounds of |xwindow_|. | 284 // The bounds of |xwindow_|. |
| 287 gfx::Rect bounds_in_pixels_; | 285 gfx::Rect bounds_in_pixels_; |
| 288 | 286 |
| 289 // Whenever the bounds are set, we keep the previous set of bounds around so | 287 // Whenever the bounds are set, we keep the previous set of bounds around so |
| 290 // we can have a better chance of getting the real | 288 // we can have a better chance of getting the real |
| 291 // |restored_bounds_in_pixels_|. Window managers tend to send a Configure | 289 // |restored_bounds_in_pixels_|. Window managers tend to send a Configure |
| 292 // message with the maximized bounds, and then set the window maximized | 290 // message with the maximized bounds, and then set the window maximized |
| 293 // property. (We don't rely on this for when we request that the window be | 291 // property. (We don't rely on this for when we request that the window be |
| 294 // maximized, only when we detect that some other process has requested that | 292 // maximized, only when we detect that some other process has requested that |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 base::CancelableCallback<void()> delayed_resize_task_; | 407 base::CancelableCallback<void()> delayed_resize_task_; |
| 410 | 408 |
| 411 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 409 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 412 | 410 |
| 413 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 411 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 414 }; | 412 }; |
| 415 | 413 |
| 416 } // namespace views | 414 } // namespace views |
| 417 | 415 |
| 418 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 416 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |