| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 ::Window xwindow_; | 252 ::Window xwindow_; |
| 253 | 253 |
| 254 // The native root window. | 254 // The native root window. |
| 255 ::Window x_root_window_; | 255 ::Window x_root_window_; |
| 256 | 256 |
| 257 ui::X11AtomCache atom_cache_; | 257 ui::X11AtomCache atom_cache_; |
| 258 | 258 |
| 259 // Is the window mapped to the screen? | 259 // Is the window mapped to the screen? |
| 260 bool window_mapped_; | 260 bool window_mapped_; |
| 261 | 261 |
| 262 // Keeps track of whether we have ever mapped/withdrawn this |
| 263 // window. Debugging information in trying to track down crbug.com/381732. |
| 264 bool x_map_window_was_called_ = false; |
| 265 |
| 262 // The bounds of |xwindow_|. | 266 // The bounds of |xwindow_|. |
| 263 gfx::Rect bounds_in_pixels_; | 267 gfx::Rect bounds_in_pixels_; |
| 264 | 268 |
| 265 // Whenever the bounds are set, we keep the previous set of bounds around so | 269 // Whenever the bounds are set, we keep the previous set of bounds around so |
| 266 // we can have a better chance of getting the real | 270 // we can have a better chance of getting the real |
| 267 // |restored_bounds_in_pixels_|. Window managers tend to send a Configure | 271 // |restored_bounds_in_pixels_|. Window managers tend to send a Configure |
| 268 // message with the maximized bounds, and then set the window maximized | 272 // message with the maximized bounds, and then set the window maximized |
| 269 // property. (We don't rely on this for when we request that the window be | 273 // property. (We don't rely on this for when we request that the window be |
| 270 // maximized, only when we detect that some other process has requested that | 274 // maximized, only when we detect that some other process has requested that |
| 271 // we become the maximized window.) | 275 // we become the maximized window.) |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 base::CancelableCallback<void()> delayed_resize_task_; | 353 base::CancelableCallback<void()> delayed_resize_task_; |
| 350 | 354 |
| 351 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 355 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 352 | 356 |
| 353 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 357 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 354 }; | 358 }; |
| 355 | 359 |
| 356 } // namespace views | 360 } // namespace views |
| 357 | 361 |
| 358 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 362 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |