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_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
(...skipping 18 matching lines...) Expand all Loading... |
29 class ScreenPositionClient; | 29 class ScreenPositionClient; |
30 } | 30 } |
31 namespace shared { | 31 namespace shared { |
32 class CompoundEventFilter; | 32 class CompoundEventFilter; |
33 class InputMethodEventFilter; | 33 class InputMethodEventFilter; |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 namespace views { | 37 namespace views { |
38 class DesktopCaptureClient; | 38 class DesktopCaptureClient; |
| 39 class X11DesktopWindowMoveClient; |
39 class X11WindowEventFilter; | 40 class X11WindowEventFilter; |
40 | 41 |
41 class VIEWS_EXPORT DesktopRootWindowHostLinux | 42 class VIEWS_EXPORT DesktopRootWindowHostLinux |
42 : public DesktopRootWindowHost, | 43 : public DesktopRootWindowHost, |
43 public aura::RootWindowHost, | 44 public aura::RootWindowHost, |
44 public aura::client::CursorClient, | 45 public aura::client::CursorClient, |
45 public views::internal::InputMethodDelegate, | 46 public views::internal::InputMethodDelegate, |
46 public MessageLoop::Dispatcher { | 47 public MessageLoop::Dispatcher { |
47 public: | 48 public: |
48 DesktopRootWindowHostLinux( | 49 DesktopRootWindowHostLinux( |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 220 |
220 // The invisible cursor. | 221 // The invisible cursor. |
221 ::Cursor invisible_cursor_; | 222 ::Cursor invisible_cursor_; |
222 | 223 |
223 // Toplevel event filter which dispatches to other event filters. | 224 // Toplevel event filter which dispatches to other event filters. |
224 aura::shared::CompoundEventFilter* root_window_event_filter_; | 225 aura::shared::CompoundEventFilter* root_window_event_filter_; |
225 | 226 |
226 // An event filter that pre-handles all key events to send them to an IME. | 227 // An event filter that pre-handles all key events to send them to an IME. |
227 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; | 228 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; |
228 scoped_ptr<X11WindowEventFilter> x11_window_event_filter_; | 229 scoped_ptr<X11WindowEventFilter> x11_window_event_filter_; |
| 230 scoped_ptr<X11DesktopWindowMoveClient> x11_window_move_client_; |
229 | 231 |
230 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura | 232 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura |
231 // instead of providing this route back to Widget. | 233 // instead of providing this route back to Widget. |
232 internal::NativeWidgetDelegate* native_widget_delegate_; | 234 internal::NativeWidgetDelegate* native_widget_delegate_; |
233 | 235 |
234 DesktopNativeWidgetAura* desktop_native_widget_aura_; | 236 DesktopNativeWidgetAura* desktop_native_widget_aura_; |
235 | 237 |
236 aura::RootWindowHostDelegate* root_window_host_delegate_; | 238 aura::RootWindowHostDelegate* root_window_host_delegate_; |
237 aura::Window* content_window_; | 239 aura::Window* content_window_; |
238 | 240 |
239 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 241 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
240 }; | 242 }; |
241 | 243 |
242 } // namespace views | 244 } // namespace views |
243 | 245 |
244 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 246 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |