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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 10855200: Defer GestureTapDown events briefly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proof-reading corrections Created 8 years, 4 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
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // Stops all existing hang monitor timeouts and assumes the renderer is 226 // Stops all existing hang monitor timeouts and assumes the renderer is
227 // responsive. 227 // responsive.
228 void StopHangMonitorTimeout(); 228 void StopHangMonitorTimeout();
229 229
230 // Forwards the given message to the renderer. These are called by the view 230 // Forwards the given message to the renderer. These are called by the view
231 // when it has received a message. 231 // when it has received a message.
232 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); 232 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event);
233 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); 233 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event);
234 234
235 // Forwards the given event immediately to the renderer.
236 void ForwardGestureEventImmediately(
237 const WebKit::WebGestureEvent& gesture_event);
238
235 #if defined(TOOLKIT_GTK) 239 #if defined(TOOLKIT_GTK)
236 // Give key press listeners a chance to handle this key press. This allow 240 // Give key press listeners a chance to handle this key press. This allow
237 // widgets that don't have focus to still handle key presses. 241 // widgets that don't have focus to still handle key presses.
238 bool KeyPressListenersHandleEvent(GdkEventKey* event); 242 bool KeyPressListenersHandleEvent(GdkEventKey* event);
239 #endif // defined(TOOLKIT_GTK) 243 #endif // defined(TOOLKIT_GTK)
240 244
241 void CancelUpdateTextDirection(); 245 void CancelUpdateTextDirection();
242 246
243 // Called when a mouse click/gesture tap activates the renderer. 247 // Called when a mouse click/gesture tap activates the renderer.
244 virtual void OnPointerEventActivate(); 248 virtual void OnPointerEventActivate();
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; 794 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_;
791 795
792 scoped_ptr<GestureEventFilter> gesture_event_filter_; 796 scoped_ptr<GestureEventFilter> gesture_event_filter_;
793 797
794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 798 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
795 }; 799 };
796 800
797 } // namespace content 801 } // namespace content
798 802
799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 803 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gesture_event_filter.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698