OLD | NEW |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // The height of the bottom bar. | 181 // The height of the bottom bar. |
182 virtual float GetBottomControlsHeight() const; | 182 virtual float GetBottomControlsHeight() const; |
183 | 183 |
184 // Called prior to forwarding input event messages to the renderer, giving | 184 // Called prior to forwarding input event messages to the renderer, giving |
185 // the view a chance to perform in-process event filtering or processing. | 185 // the view a chance to perform in-process event filtering or processing. |
186 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 186 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
187 // being forwarded. | 187 // being forwarded. |
188 virtual InputEventAckState FilterInputEvent( | 188 virtual InputEventAckState FilterInputEvent( |
189 const blink::WebInputEvent& input_event); | 189 const blink::WebInputEvent& input_event); |
190 | 190 |
| 191 // Allows a root RWHV to filter gesture events in a child. |
| 192 virtual InputEventAckState FilterChildGestureEvent( |
| 193 const blink::WebGestureEvent& gesture_event); |
| 194 |
191 // Called by the host when it requires an input flush; the flush call should | 195 // Called by the host when it requires an input flush; the flush call should |
192 // by synchronized with BeginFrame. | 196 // by synchronized with BeginFrame. |
193 virtual void OnSetNeedsFlushInput() = 0; | 197 virtual void OnSetNeedsFlushInput() = 0; |
194 | 198 |
195 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, | 199 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, |
196 InputEventAckState ack_result); | 200 InputEventAckState ack_result); |
197 | 201 |
198 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 202 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
199 InputEventAckState ack_result); | 203 InputEventAckState ack_result); |
200 | 204 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 481 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
478 | 482 |
479 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 483 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
480 | 484 |
481 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 485 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
482 }; | 486 }; |
483 | 487 |
484 } // namespace content | 488 } // namespace content |
485 | 489 |
486 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 490 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |