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