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

Side by Side Diff: ui/aura/root_window.h

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 2 months 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/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.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_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Converts |point| from the root window's coordinate system to native 197 // Converts |point| from the root window's coordinate system to native
198 // screen's. 198 // screen's.
199 void ConvertPointToNativeScreen(gfx::Point* point) const; 199 void ConvertPointToNativeScreen(gfx::Point* point) const;
200 200
201 // Converts |point| from native screen coordinate system to the root window's. 201 // Converts |point| from native screen coordinate system to the root window's.
202 void ConvertPointFromNativeScreen(gfx::Point* point) const; 202 void ConvertPointFromNativeScreen(gfx::Point* point) const;
203 203
204 // Gesture Recognition ------------------------------------------------------- 204 // Gesture Recognition -------------------------------------------------------
205 205
206 // When a touch event is dispatched to a Window, it can notify the RootWindow 206 // When a touch event is dispatched to a Window, it may want to process the
207 // to queue the touch event for asynchronous gesture recognition. These are 207 // touch event asynchronously. In such cases, the window should consume the
208 // the entry points for the asynchronous processing of the queued touch 208 // event during the event dispatch. Once the event is properly processed, the
209 // events. 209 // window should let the RootWindow know about the result of the event
210 // Process the next touch event for gesture recognition. |processed| indicates 210 // processing, so that gesture events can be properly created and dispatched.
211 // whether the queued event was processed by the window or not. 211 void ProcessedTouchEvent(ui::TouchEvent* event,
212 void AdvanceQueuedTouchEvent(Window* window, bool processed); 212 Window* window,
213 ui::EventResult result);
213 214
214 ui::GestureRecognizer* gesture_recognizer() const { 215 ui::GestureRecognizer* gesture_recognizer() const {
215 return gesture_recognizer_.get(); 216 return gesture_recognizer_.get();
216 } 217 }
217 218
218 // Provided only for testing: 219 // Provided only for testing:
219 void SetGestureRecognizerForTesting(ui::GestureRecognizer* gr); 220 void SetGestureRecognizerForTesting(ui::GestureRecognizer* gr);
220 221
221 // Returns the accelerated widget from the RootWindowHost. 222 // Returns the accelerated widget from the RootWindowHost.
222 gfx::AcceleratedWidget GetAcceleratedWidget(); 223 gfx::AcceleratedWidget GetAcceleratedWidget();
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 411
411 CompositorLock* compositor_lock_; 412 CompositorLock* compositor_lock_;
412 bool draw_on_compositor_unlock_; 413 bool draw_on_compositor_unlock_;
413 414
414 DISALLOW_COPY_AND_ASSIGN(RootWindow); 415 DISALLOW_COPY_AND_ASSIGN(RootWindow);
415 }; 416 };
416 417
417 } // namespace aura 418 } // namespace aura
418 419
419 #endif // UI_AURA_ROOT_WINDOW_H_ 420 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698