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

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

Issue 565433002: Fix incorrect touch transform before gesture recognition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 6 years, 3 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
« no previous file with comments | « no previous file | ui/aura/window_event_dispatcher.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WINDOW_EVENT_DISPATCHER_H_ 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_
6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ui::EventDispatchDetails DispatchMouseExitAtPoint( 81 ui::EventDispatchDetails DispatchMouseExitAtPoint(
82 const gfx::Point& point) WARN_UNUSED_RESULT; 82 const gfx::Point& point) WARN_UNUSED_RESULT;
83 83
84 // Gesture Recognition ------------------------------------------------------- 84 // Gesture Recognition -------------------------------------------------------
85 85
86 // When a touch event is dispatched to a Window, it may want to process the 86 // When a touch event is dispatched to a Window, it may want to process the
87 // touch event asynchronously. In such cases, the window should consume the 87 // touch event asynchronously. In such cases, the window should consume the
88 // event during the event dispatch. Once the event is properly processed, the 88 // event during the event dispatch. Once the event is properly processed, the
89 // window should let the WindowEventDispatcher know about the result of the 89 // window should let the WindowEventDispatcher know about the result of the
90 // event processing, so that gesture events can be properly created and 90 // event processing, so that gesture events can be properly created and
91 // dispatched. 91 // dispatched. |event|'s location should be in the dispatcher's coordinate
92 // space, in DIPs.
92 void ProcessedTouchEvent(ui::TouchEvent* event, 93 void ProcessedTouchEvent(ui::TouchEvent* event,
93 Window* window, 94 Window* window,
94 ui::EventResult result); 95 ui::EventResult result);
95 96
96 // These methods are used to defer the processing of mouse/touch events 97 // These methods are used to defer the processing of mouse/touch events
97 // related to resize. A client (typically a RenderWidgetHostViewAura) can call 98 // related to resize. A client (typically a RenderWidgetHostViewAura) can call
98 // HoldPointerMoves when an resize is initiated and then ReleasePointerMoves 99 // HoldPointerMoves when an resize is initiated and then ReleasePointerMoves
99 // once the resize is completed. 100 // once the resize is completed.
100 // 101 //
101 // More than one hold can be invoked and each hold must be cancelled by a 102 // More than one hold can be invoked and each hold must be cancelled by a
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 263
263 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
264 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher);
267 }; 268 };
268 269
269 } // namespace aura 270 } // namespace aura
270 271
271 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698