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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2815823003: Notify OverscrollController of gesture events in plugins. (Closed)
Patch Set: Fix for Mac history swiper. Created 3 years, 7 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 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool RenderWidgetHostViewBase::IsMouseLocked() { 180 bool RenderWidgetHostViewBase::IsMouseLocked() {
181 return mouse_locked_; 181 return mouse_locked_;
182 } 182 }
183 183
184 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( 184 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent(
185 const blink::WebInputEvent& input_event) { 185 const blink::WebInputEvent& input_event) {
186 // By default, input events are simply forwarded to the renderer. 186 // By default, input events are simply forwarded to the renderer.
187 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 187 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
188 } 188 }
189 189
190 InputEventAckState RenderWidgetHostViewBase::FilterChildGestureEvent(
191 const blink::WebGestureEvent& gesture_event) {
192 // By default, do nothing with the child's gesture events.
193 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
194 }
195
190 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { 196 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() {
191 if (flush_input_timer_.IsRunning()) 197 if (flush_input_timer_.IsRunning())
192 return; 198 return;
193 199
194 flush_input_timer_.Start( 200 flush_input_timer_.Start(
195 FROM_HERE, 201 FROM_HERE,
196 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), 202 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs),
197 this, 203 this,
198 &RenderWidgetHostViewBase::FlushInput); 204 &RenderWidgetHostViewBase::FlushInput);
199 } 205 }
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 505
500 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 506 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
501 return false; 507 return false;
502 } 508 }
503 509
504 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 510 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
505 return cc::SurfaceId(); 511 return cc::SurfaceId();
506 } 512 }
507 513
508 } // namespace content 514 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698