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

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: Rebase. 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool RenderWidgetHostViewBase::IsMouseLocked() { 177 bool RenderWidgetHostViewBase::IsMouseLocked() {
178 return mouse_locked_; 178 return mouse_locked_;
179 } 179 }
180 180
181 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( 181 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent(
182 const blink::WebInputEvent& input_event) { 182 const blink::WebInputEvent& input_event) {
183 // By default, input events are simply forwarded to the renderer. 183 // By default, input events are simply forwarded to the renderer.
184 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 184 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
185 } 185 }
186 186
187 InputEventAckState RenderWidgetHostViewBase::FilterChildGestureEvent(
188 const blink::WebGestureEvent& gesture_event) {
189 // By default, do nothing with the child's gesture events.
190 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
191 }
192
187 void RenderWidgetHostViewBase::WheelEventAck( 193 void RenderWidgetHostViewBase::WheelEventAck(
188 const blink::WebMouseWheelEvent& event, 194 const blink::WebMouseWheelEvent& event,
189 InputEventAckState ack_result) { 195 InputEventAckState ack_result) {
190 } 196 }
191 197
192 void RenderWidgetHostViewBase::GestureEventAck( 198 void RenderWidgetHostViewBase::GestureEventAck(
193 const blink::WebGestureEvent& event, 199 const blink::WebGestureEvent& event,
194 InputEventAckState ack_result) { 200 InputEventAckState ack_result) {
195 } 201 }
196 202
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 486
481 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 487 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
482 return false; 488 return false;
483 } 489 }
484 490
485 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 491 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
486 return cc::SurfaceId(); 492 return cc::SurfaceId();
487 } 493 }
488 494
489 } // namespace content 495 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698