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

Side by Side Diff: content/browser/renderer_host/input/gesture_event_queue.cc

Issue 1308273003: Resend unconsumed scroll update from guest back to embedder (WebView Scroll Bubble). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't require GestureScrollBegin for touch-pad GestureFlingStart. Created 5 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
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 #include "content/browser/renderer_host/input/gesture_event_queue.h" 5 #include "content/browser/renderer_host/input/gesture_event_queue.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h" 8 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h"
9 #include "content/browser/renderer_host/input/touchscreen_tap_suppression_contro ller.h" 9 #include "content/browser/renderer_host/input/touchscreen_tap_suppression_contro ller.h"
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 debounce_interval_, 118 debounce_interval_,
119 this, 119 this,
120 &GestureEventQueue::SendScrollEndingEventsNow); 120 &GestureEventQueue::SendScrollEndingEventsNow);
121 } else { 121 } else {
122 // Extend the bounce interval. 122 // Extend the bounce interval.
123 debounce_deferring_timer_.Reset(); 123 debounce_deferring_timer_.Reset();
124 } 124 }
125 scrolling_in_progress_ = true; 125 scrolling_in_progress_ = true;
126 debouncing_deferral_queue_.clear(); 126 debouncing_deferral_queue_.clear();
127 return true; 127 return true;
128
128 case WebInputEvent::GesturePinchBegin: 129 case WebInputEvent::GesturePinchBegin:
129 case WebInputEvent::GesturePinchEnd: 130 case WebInputEvent::GesturePinchEnd:
130 case WebInputEvent::GesturePinchUpdate: 131 case WebInputEvent::GesturePinchUpdate:
131 // TODO(rjkroege): Debounce pinch (http://crbug.com/147647) 132 // TODO(rjkroege): Debounce pinch (http://crbug.com/147647)
132 return true; 133 return true;
133 default: 134 default:
134 if (scrolling_in_progress_) { 135 if (scrolling_in_progress_) {
135 debouncing_deferral_queue_.push_back(gesture_event); 136 debouncing_deferral_queue_.push_back(gesture_event);
136 return false; 137 return false;
137 } 138 }
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return 0; 390 return 0;
390 391
391 if (!ignore_next_ack_) 392 if (!ignore_next_ack_)
392 return 1; 393 return 1;
393 394
394 DCHECK_GT(coalesced_gesture_events_.size(), 1U); 395 DCHECK_GT(coalesced_gesture_events_.size(), 1U);
395 return 2; 396 return 2;
396 } 397 }
397 398
398 } // namespace content 399 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698