Chromium Code Reviews| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
| index 787372d9c26811da951f50cd56db9e47398a5f21..5167c14965f350c831fe1f39d3b4f3637952a5d2 100644 |
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
| @@ -13,6 +13,7 @@ |
| #include "base/cancelable_callback.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/observer_list.h" |
| +#include "ui/aura/scoped_window_targeter.h" |
| #include "ui/aura/window_tree_host.h" |
| #include "ui/base/cursor/cursor_loader_x11.h" |
| #include "ui/events/platform/platform_event_dispatcher.h" |
| @@ -85,6 +86,17 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11 |
| // internal list of open windows. |
| static void CleanUpWindowList(void (*func)(aura::Window* window)); |
| + // Disables event listening to make |dialog| modal. |
| + // |dialog| is a Gtk file dialog. |
| + void DisableEventListening(XID dialog); |
|
sadrul
2015/07/14 08:13:01
Remove the comment about |dialog| being a GTK dial
joone
2015/07/14 22:35:39
Done.
|
| + |
| + // Enables event listening after closing |dialog|. |
| + void EnableEventListening(); |
| + |
| + // Returns XID of Gtk file dialog currently displayed. When it returns 0, |
| + // there is no dialog on the host window. |
| + XID GetModalDialog(); |
|
sadrul
2015/07/14 08:13:01
make this const
joone
2015/07/14 22:35:39
Done.
|
| + |
| protected: |
| // Overridden from DesktopWindowTreeHost: |
| void Init(aura::Window* content_window, |
| @@ -346,6 +358,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11 |
| base::CancelableCallback<void()> delayed_resize_task_; |
| + scoped_ptr<aura::ScopedWindowTargeter> targeter_for_modal_; |
| + |
| + XID modal_dialog_xid_; |
| + |
| base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |