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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 gfx::Rect GetX11RootWindowOuterBounds() const; | 69 gfx::Rect GetX11RootWindowOuterBounds() const; |
70 | 70 |
71 // Returns the window shape if the window is not rectangular. Returns NULL | 71 // Returns the window shape if the window is not rectangular. Returns NULL |
72 // otherwise. | 72 // otherwise. |
73 ::Region GetWindowShape() const; | 73 ::Region GetWindowShape() const; |
74 | 74 |
75 // Called by X11DesktopHandler to notify us that the native windowing system | 75 // Called by X11DesktopHandler to notify us that the native windowing system |
76 // has changed our activation. | 76 // has changed our activation. |
77 void HandleNativeWidgetActivationChanged(bool active); | 77 void HandleNativeWidgetActivationChanged(bool active); |
78 | 78 |
79 void AddObserver(views::DesktopWindowTreeHostObserverX11* observer); | 79 void AddObserver(DesktopWindowTreeHostObserverX11* observer); |
80 void RemoveObserver(views::DesktopWindowTreeHostObserverX11* observer); | 80 void RemoveObserver(DesktopWindowTreeHostObserverX11* observer); |
81 | 81 |
82 // Swaps the current handler for events in the non client view with |handler|. | 82 // Swaps the current handler for events in the non client view with |handler|. |
83 void SwapNonClientEventHandler(std::unique_ptr<ui::EventHandler> handler); | 83 void SwapNonClientEventHandler(std::unique_ptr<ui::EventHandler> handler); |
84 | 84 |
85 // Runs the |func| callback for each content-window, and deallocates the | 85 // Runs the |func| callback for each content-window, and deallocates the |
86 // internal list of open windows. | 86 // internal list of open windows. |
87 static void CleanUpWindowList(void (*func)(aura::Window* window)); | 87 static void CleanUpWindowList(void (*func)(aura::Window* window)); |
88 | 88 |
89 protected: | 89 protected: |
90 // Overridden from DesktopWindowTreeHost: | 90 // Overridden from DesktopWindowTreeHost: |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 base::CancelableCallback<void()> delayed_resize_task_; | 361 base::CancelableCallback<void()> delayed_resize_task_; |
362 | 362 |
363 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 363 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
364 | 364 |
365 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 365 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
366 }; | 366 }; |
367 | 367 |
368 } // namespace views | 368 } // namespace views |
369 | 369 |
370 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 370 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |