| 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 <X11/extensions/shape.h> | 8 #include <X11/extensions/shape.h> |
| 9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
| 10 #include <X11/Xutil.h> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/cancelable_callback.h" | 13 #include "base/cancelable_callback.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 15 #include "ui/aura/window_tree_host.h" | 16 #include "ui/aura/window_tree_host.h" |
| 16 #include "ui/base/cursor/cursor_loader_x11.h" | 17 #include "ui/base/cursor/cursor_loader_x11.h" |
| 17 #include "ui/events/event_source.h" | 18 #include "ui/events/event_source.h" |
| 18 #include "ui/events/platform/platform_event_dispatcher.h" | 19 #include "ui/events/platform/platform_event_dispatcher.h" |
| 19 #include "ui/gfx/geometry/insets.h" | 20 #include "ui/gfx/geometry/insets.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 aura::Window* content_window_; | 315 aura::Window* content_window_; |
| 315 | 316 |
| 316 // We can optionally have a parent which can order us to close, or own | 317 // We can optionally have a parent which can order us to close, or own |
| 317 // children who we're responsible for closing when we CloseNow(). | 318 // children who we're responsible for closing when we CloseNow(). |
| 318 DesktopWindowTreeHostX11* window_parent_; | 319 DesktopWindowTreeHostX11* window_parent_; |
| 319 std::set<DesktopWindowTreeHostX11*> window_children_; | 320 std::set<DesktopWindowTreeHostX11*> window_children_; |
| 320 | 321 |
| 321 ObserverList<DesktopWindowTreeHostObserverX11> observer_list_; | 322 ObserverList<DesktopWindowTreeHostObserverX11> observer_list_; |
| 322 | 323 |
| 323 // The window shape if the window is non-rectangular. | 324 // The window shape if the window is non-rectangular. |
| 324 ::Region window_shape_; | 325 gfx::XScopedPtr<_XRegion, gfx::XObjectDeleter<_XRegion, int, XDestroyRegion>> |
| 326 window_shape_; |
| 325 | 327 |
| 326 // Whether |window_shape_| was set via SetShape(). | 328 // Whether |window_shape_| was set via SetShape(). |
| 327 bool custom_window_shape_; | 329 bool custom_window_shape_; |
| 328 | 330 |
| 329 // The size of the window manager provided borders (if any). | 331 // The size of the window manager provided borders (if any). |
| 330 gfx::Insets native_window_frame_borders_in_pixels_; | 332 gfx::Insets native_window_frame_borders_in_pixels_; |
| 331 | 333 |
| 332 // The current DesktopWindowTreeHostX11 which has capture. Set synchronously | 334 // The current DesktopWindowTreeHostX11 which has capture. Set synchronously |
| 333 // when capture is requested via SetCapture(). | 335 // when capture is requested via SetCapture(). |
| 334 static DesktopWindowTreeHostX11* g_current_capture; | 336 static DesktopWindowTreeHostX11* g_current_capture; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 348 base::CancelableCallback<void()> delayed_resize_task_; | 350 base::CancelableCallback<void()> delayed_resize_task_; |
| 349 | 351 |
| 350 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 352 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 351 | 353 |
| 352 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 354 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 353 }; | 355 }; |
| 354 | 356 |
| 355 } // namespace views | 357 } // namespace views |
| 356 | 358 |
| 357 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 359 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |