Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h

Issue 89413002: linux aura: Support touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698