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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // or ignored (when |ack_result| is CONSUMED). | 222 // or ignored (when |ack_result| is CONSUMED). |
223 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 223 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
224 InputEventAckState ack_result) {} | 224 InputEventAckState ack_result) {} |
225 | 225 |
226 virtual void DidOverscroll(const ui::DidOverscrollParams& params) {} | 226 virtual void DidOverscroll(const ui::DidOverscrollParams& params) {} |
227 | 227 |
228 virtual void DidStopFlinging() {} | 228 virtual void DidStopFlinging() {} |
229 | 229 |
230 // Returns the compositing surface ID namespace, or 0 if Surfaces are not | 230 // Returns the compositing surface ID namespace, or 0 if Surfaces are not |
231 // enabled. | 231 // enabled. |
232 virtual uint32_t GetSurfaceClientId(); | 232 virtual cc::FrameSinkId GetFrameSinkId(); |
233 | 233 |
234 // When there are multiple RenderWidgetHostViews for a single page, input | 234 // When there are multiple RenderWidgetHostViews for a single page, input |
235 // events need to be targeted to the correct one for handling. The following | 235 // events need to be targeted to the correct one for handling. The following |
236 // methods are invoked on the RenderWidgetHostView that should be able to | 236 // methods are invoked on the RenderWidgetHostView that should be able to |
237 // properly handle the event (i.e. it has focus for keyboard events, or has | 237 // properly handle the event (i.e. it has focus for keyboard events, or has |
238 // been identified by hit testing mouse, touch or gesture events). | 238 // been identified by hit testing mouse, touch or gesture events). |
239 virtual uint32_t SurfaceClientIdAtPoint(cc::SurfaceHittestDelegate* delegate, | 239 virtual cc::FrameSinkId FrameSinkIdAtPoint( |
240 const gfx::Point& point, | 240 cc::SurfaceHittestDelegate* delegate, |
241 gfx::Point* transformed_point); | 241 const gfx::Point& point, |
| 242 gfx::Point* transformed_point); |
242 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 243 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
243 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, | 244 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, |
244 const ui::LatencyInfo& latency) {} | 245 const ui::LatencyInfo& latency) {} |
245 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 246 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
246 const ui::LatencyInfo& latency) {} | 247 const ui::LatencyInfo& latency) {} |
247 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 248 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
248 const ui::LatencyInfo& latency) {} | 249 const ui::LatencyInfo& latency) {} |
249 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, | 250 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
250 const ui::LatencyInfo& latency) {} | 251 const ui::LatencyInfo& latency) {} |
251 | 252 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 489 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
489 | 490 |
490 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 491 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
491 | 492 |
492 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 493 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
493 }; | 494 }; |
494 | 495 |
495 } // namespace content | 496 } // namespace content |
496 | 497 |
497 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 498 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |