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

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

Issue 16114003: Don't send touch move to renderer while scrolling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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
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 <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // This is for derived classes to give us access to the resizer rect. 325 // This is for derived classes to give us access to the resizer rect.
326 // And to also expose it to the RenderWidgetHostView. 326 // And to also expose it to the RenderWidgetHostView.
327 virtual gfx::Rect GetRootWindowResizerRect() const; 327 virtual gfx::Rect GetRootWindowResizerRect() const;
328 328
329 bool ignore_input_events() const { 329 bool ignore_input_events() const {
330 return ignore_input_events_; 330 return ignore_input_events_;
331 } 331 }
332 332
333 bool ShouldForwardTouchEvent() const; 333 bool ShouldForwardTouchEvent() const;
334 334
335 bool& scroll_update_in_progress() { return scroll_update_in_progress_; }
336 bool& skip_next_acked_touch_cancel(){ return skip_next_acked_touch_cancel_; }
337
335 bool has_touch_handler() const { return has_touch_handler_; } 338 bool has_touch_handler() const { return has_touch_handler_; }
336 339
337 // Notification that the user has made some kind of input that could 340 // Notification that the user has made some kind of input that could
338 // perform an action. See OnUserGesture for more details. 341 // perform an action. See OnUserGesture for more details.
339 void StartUserGesture(); 342 void StartUserGesture();
340 343
341 // Set the RenderView background. 344 // Set the RenderView background.
342 void SetBackground(const SkBitmap& background); 345 void SetBackground(const SkBitmap& background);
343 346
344 // Notifies the renderer that the next key event is bound to one or more 347 // Notifies the renderer that the next key event is bound to one or more
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 // switching back to the original tab, because the content may already be 883 // switching back to the original tab, because the content may already be
881 // changed. 884 // changed.
882 bool suppress_next_char_events_; 885 bool suppress_next_char_events_;
883 886
884 // The last scroll offset of the render widget. 887 // The last scroll offset of the render widget.
885 gfx::Vector2d last_scroll_offset_; 888 gfx::Vector2d last_scroll_offset_;
886 889
887 bool pending_mouse_lock_request_; 890 bool pending_mouse_lock_request_;
888 bool allow_privileged_mouse_lock_; 891 bool allow_privileged_mouse_lock_;
889 892
893 bool scroll_update_in_progress_;
894 bool skip_next_acked_touch_cancel_;
895
890 // Keeps track of whether the webpage has any touch event handler. If it does, 896 // Keeps track of whether the webpage has any touch event handler. If it does,
891 // then touch events are sent to the renderer. Otherwise, the touch events are 897 // then touch events are sent to the renderer. Otherwise, the touch events are
892 // not sent to the renderer. 898 // not sent to the renderer.
893 bool has_touch_handler_; 899 bool has_touch_handler_;
894 900
895 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 901 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
896 902
897 SmoothScrollGestureController smooth_scroll_gesture_controller_; 903 SmoothScrollGestureController smooth_scroll_gesture_controller_;
898 scoped_ptr<TouchEventQueue> touch_event_queue_; 904 scoped_ptr<TouchEventQueue> touch_event_queue_;
899 scoped_ptr<GestureEventFilter> gesture_event_filter_; 905 scoped_ptr<GestureEventFilter> gesture_event_filter_;
900 scoped_ptr<OverscrollController> overscroll_controller_; 906 scoped_ptr<OverscrollController> overscroll_controller_;
901 907
902 #if defined(OS_WIN) 908 #if defined(OS_WIN)
903 std::list<HWND> dummy_windows_for_activation_; 909 std::list<HWND> dummy_windows_for_activation_;
904 #endif 910 #endif
905 911
906 // List of callbacks for pending snapshot requests to the renderer. 912 // List of callbacks for pending snapshot requests to the renderer.
907 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; 913 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_;
908 914
909 int64 last_input_number_; 915 int64 last_input_number_;
910 916
911 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 917 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
912 }; 918 };
913 919
914 } // namespace content 920 } // namespace content
915 921
916 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 922 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698