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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 static void CleanUpWindowList(void (*func)(aura::Window* window)); | 89 static void CleanUpWindowList(void (*func)(aura::Window* window)); |
90 | 90 |
91 // Disables event listening to make |dialog| modal. | 91 // Disables event listening to make |dialog| modal. |
92 void DisableEventListening(XID dialog); | 92 void DisableEventListening(XID dialog); |
93 | 93 |
94 // Enables event listening after closing |dialog|. | 94 // Enables event listening after closing |dialog|. |
95 void EnableEventListening(); | 95 void EnableEventListening(); |
96 | 96 |
97 // Returns XID of dialog currently displayed. When it returns 0, | 97 // Returns XID of dialog currently displayed. When it returns 0, |
98 // there is no dialog on the host window. | 98 // there is no dialog on the host window. |
99 const XID GetModalDialog(); | 99 XID GetModalDialog(); |
100 | 100 |
101 protected: | 101 protected: |
102 // Overridden from DesktopWindowTreeHost: | 102 // Overridden from DesktopWindowTreeHost: |
103 void Init(aura::Window* content_window, | 103 void Init(aura::Window* content_window, |
104 const Widget::InitParams& params) override; | 104 const Widget::InitParams& params) override; |
105 void OnNativeWidgetCreated(const Widget::InitParams& params) override; | 105 void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
106 scoped_ptr<corewm::Tooltip> CreateTooltip() override; | 106 scoped_ptr<corewm::Tooltip> CreateTooltip() override; |
107 scoped_ptr<aura::client::DragDropClient> CreateDragDropClient( | 107 scoped_ptr<aura::client::DragDropClient> CreateDragDropClient( |
108 DesktopNativeCursorManager* cursor_manager) override; | 108 DesktopNativeCursorManager* cursor_manager) override; |
109 void Close() override; | 109 void Close() override; |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 XID modal_dialog_xid_; | 365 XID modal_dialog_xid_; |
366 | 366 |
367 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 367 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
368 | 368 |
369 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 369 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
370 }; | 370 }; |
371 | 371 |
372 } // namespace views | 372 } // namespace views |
373 | 373 |
374 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 374 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |