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..49d1ccd440c5c146fee3aa60cd8c886085853e68 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,18 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11 |
// internal list of open windows. |
static void CleanUpWindowList(void (*func)(aura::Window* window)); |
+ // Called by SelectFileDialogImplGTK to disable event listening to make |
+ // a Gtk file dialog modal |
+ void DisableEventListening(XID dialog); |
sadrul
2015/07/01 03:58:14
Document |dialog|, and what the function is suppos
joone
2015/07/01 21:40:37
Done.
|
+ |
+ // Called by SelectFileDialogImplGTK to enable event listening after closing |
+ // the Gtk file dialog. |
+ void EnableEventListening(); |
+ |
+ // Called by X11DesktopHandler to get XID of Gtk file dialog in order to |
+ // set focus to the Gtk file dialog. |
+ XID GetModalDialog(); |
+ |
protected: |
// Overridden from DesktopWindowTreeHost: |
void Init(aura::Window* content_window, |
@@ -346,6 +359,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); |