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

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
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698