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 <X11/extensions/shape.h> | 8 #include <X11/extensions/shape.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 #include <X11/Xutil.h> | 10 #include <X11/Xutil.h> |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Dispatches a mouse event, taking mouse capture into account. If a | 202 // Dispatches a mouse event, taking mouse capture into account. If a |
203 // different host has capture, we translate the event to its coordinate space | 203 // different host has capture, we translate the event to its coordinate space |
204 // and dispatch it to that host instead. | 204 // and dispatch it to that host instead. |
205 void DispatchMouseEvent(ui::MouseEvent* event); | 205 void DispatchMouseEvent(ui::MouseEvent* event); |
206 | 206 |
207 // Dispatches a touch event, taking capture into account. If a different host | 207 // Dispatches a touch event, taking capture into account. If a different host |
208 // has capture, then touch-press events are translated to its coordinate space | 208 // has capture, then touch-press events are translated to its coordinate space |
209 // and dispatched to that host instead. | 209 // and dispatched to that host instead. |
210 void DispatchTouchEvent(ui::TouchEvent* event); | 210 void DispatchTouchEvent(ui::TouchEvent* event); |
211 | 211 |
| 212 // Dispatches a key event. |
| 213 void DispatchKeyEvent(ui::KeyEvent* event); |
| 214 |
212 // Updates the location of |located_event| to be in |host|'s coordinate system | 215 // Updates the location of |located_event| to be in |host|'s coordinate system |
213 // so that it can be dispatched to |host|. | 216 // so that it can be dispatched to |host|. |
214 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, | 217 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, |
215 DesktopWindowTreeHostX11* host); | 218 DesktopWindowTreeHostX11* host); |
216 | 219 |
217 // Resets the window region for the current widget bounds if necessary. | 220 // Resets the window region for the current widget bounds if necessary. |
218 void ResetWindowRegion(); | 221 void ResetWindowRegion(); |
219 | 222 |
220 // Serializes an image to the format used by _NET_WM_ICON. | 223 // Serializes an image to the format used by _NET_WM_ICON. |
221 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, | 224 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 base::CancelableCallback<void()> delayed_resize_task_; | 350 base::CancelableCallback<void()> delayed_resize_task_; |
348 | 351 |
349 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 352 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
350 | 353 |
351 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 354 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
352 }; | 355 }; |
353 | 356 |
354 } // namespace views | 357 } // namespace views |
355 | 358 |
356 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 359 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |