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

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

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
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_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // The height of the bottom bar. 180 // The height of the bottom bar.
181 virtual float GetBottomControlsHeight() const; 181 virtual float GetBottomControlsHeight() const;
182 182
183 // Called prior to forwarding input event messages to the renderer, giving 183 // Called prior to forwarding input event messages to the renderer, giving
184 // the view a chance to perform in-process event filtering or processing. 184 // the view a chance to perform in-process event filtering or processing.
185 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| 185 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event|
186 // being forwarded. 186 // being forwarded.
187 virtual InputEventAckState FilterInputEvent( 187 virtual InputEventAckState FilterInputEvent(
188 const blink::WebInputEvent& input_event); 188 const blink::WebInputEvent& input_event);
189 189
190 // Allows a root RWHV to filter gesture events in a child.
191 virtual InputEventAckState FilterChildGestureEvent(
192 const blink::WebGestureEvent& gesture_event);
193
190 // Called by the host when it requires an input flush; the flush call should 194 // Called by the host when it requires an input flush; the flush call should
191 // by synchronized with BeginFrame. 195 // by synchronized with BeginFrame.
192 virtual void OnSetNeedsFlushInput() = 0; 196 virtual void OnSetNeedsFlushInput() = 0;
193 197
194 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, 198 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event,
195 InputEventAckState ack_result); 199 InputEventAckState ack_result);
196 200
197 virtual void GestureEventAck(const blink::WebGestureEvent& event, 201 virtual void GestureEventAck(const blink::WebGestureEvent& event,
198 InputEventAckState ack_result); 202 InputEventAckState ack_result);
199 203
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
464 468
465 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
466 470
467 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
468 }; 472 };
469 473
470 } // namespace content 474 } // namespace content
471 475
472 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698