| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // A list of all (top-level) windows that have been created but not yet | 278 // A list of all (top-level) windows that have been created but not yet |
| 274 // destroyed. | 279 // destroyed. |
| 275 static std::list<XID>* open_windows_; | 280 static std::list<XID>* open_windows_; |
| 276 | 281 |
| 277 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); | 282 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); |
| 278 }; | 283 }; |
| 279 | 284 |
| 280 } // namespace views | 285 } // namespace views |
| 281 | 286 |
| 282 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ | 287 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ |
| OLD | NEW |