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_ROOT_WINDOW_HOST_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // Called when another DRWHL takes capture, or when capture is released | 174 // Called when another DRWHL takes capture, or when capture is released |
175 // entirely. | 175 // entirely. |
176 void OnCaptureReleased(); | 176 void OnCaptureReleased(); |
177 | 177 |
178 // Dispatches a mouse event, taking mouse capture into account. If a | 178 // Dispatches a mouse event, taking mouse capture into account. If a |
179 // different host has capture, we translate the event to its coordinate space | 179 // different host has capture, we translate the event to its coordinate space |
180 // and dispatch it to that host instead. | 180 // and dispatch it to that host instead. |
181 void DispatchMouseEvent(ui::MouseEvent* event); | 181 void DispatchMouseEvent(ui::MouseEvent* event); |
182 | 182 |
| 183 // Dispatches a touch event, taking capture into account. If a different host |
| 184 // has capture, then touch-press events are translated to its coordinate space |
| 185 // and dispatched to that host instead. |
| 186 void DispatchTouchEvent(ui::TouchEvent* event); |
| 187 |
183 // Resets the window region for the current widget bounds if necessary. | 188 // Resets the window region for the current widget bounds if necessary. |
184 void ResetWindowRegion(); | 189 void ResetWindowRegion(); |
185 | 190 |
186 // Serializes an image to the format used by _NET_WM_ICON. | 191 // Serializes an image to the format used by _NET_WM_ICON. |
187 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, | 192 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, |
188 std::vector<unsigned long>* data); | 193 std::vector<unsigned long>* data); |
189 | 194 |
190 // See comment for variable open_windows_. | 195 // See comment for variable open_windows_. |
191 static std::list<XID>& open_windows(); | 196 static std::list<XID>& open_windows(); |
192 | 197 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // A list of all (top-level) windows that have been created but not yet | 275 // A list of all (top-level) windows that have been created but not yet |
271 // destroyed. | 276 // destroyed. |
272 static std::list<XID>* open_windows_; | 277 static std::list<XID>* open_windows_; |
273 | 278 |
274 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); | 279 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); |
275 }; | 280 }; |
276 | 281 |
277 } // namespace views | 282 } // namespace views |
278 | 283 |
279 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ | 284 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
OLD | NEW |