| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // or ignored (when |ack_result| is CONSUMED). | 212 // or ignored (when |ack_result| is CONSUMED). |
| 213 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 213 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 214 InputEventAckState ack_result) {} | 214 InputEventAckState ack_result) {} |
| 215 | 215 |
| 216 virtual void DidOverscroll(const DidOverscrollParams& params) {} | 216 virtual void DidOverscroll(const DidOverscrollParams& params) {} |
| 217 | 217 |
| 218 virtual void DidStopFlinging() {} | 218 virtual void DidStopFlinging() {} |
| 219 | 219 |
| 220 // Returns the compositing surface ID namespace, or 0 if Surfaces are not | 220 // Returns the compositing surface ID namespace, or 0 if Surfaces are not |
| 221 // enabled. | 221 // enabled. |
| 222 virtual uint32_t GetSurfaceIdNamespace(); | 222 virtual uint32_t GetSurfaceClientId(); |
| 223 | 223 |
| 224 // When there are multiple RenderWidgetHostViews for a single page, input | 224 // When there are multiple RenderWidgetHostViews for a single page, input |
| 225 // events need to be targeted to the correct one for handling. The following | 225 // events need to be targeted to the correct one for handling. The following |
| 226 // methods are invoked on the RenderWidgetHostView that should be able to | 226 // methods are invoked on the RenderWidgetHostView that should be able to |
| 227 // properly handle the event (i.e. it has focus for keyboard events, or has | 227 // properly handle the event (i.e. it has focus for keyboard events, or has |
| 228 // been identified by hit testing mouse, touch or gesture events). | 228 // been identified by hit testing mouse, touch or gesture events). |
| 229 virtual uint32_t SurfaceIdNamespaceAtPoint( | 229 virtual uint32_t SurfaceClientIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 230 cc::SurfaceHittestDelegate* delegate, | 230 const gfx::Point& point, |
| 231 const gfx::Point& point, | 231 gfx::Point* transformed_point); |
| 232 gfx::Point* transformed_point); | |
| 233 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 232 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 234 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, | 233 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 235 const ui::LatencyInfo& latency) {} | 234 const ui::LatencyInfo& latency) {} |
| 236 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 235 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 237 const ui::LatencyInfo& latency) {} | 236 const ui::LatencyInfo& latency) {} |
| 238 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 237 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 239 const ui::LatencyInfo& latency) {} | 238 const ui::LatencyInfo& latency) {} |
| 240 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, | 239 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 241 const ui::LatencyInfo& latency) {} | 240 const ui::LatencyInfo& latency) {} |
| 242 | 241 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 471 | 470 |
| 472 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 473 | 472 |
| 474 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 475 }; | 474 }; |
| 476 | 475 |
| 477 } // namespace content | 476 } // namespace content |
| 478 | 477 |
| 479 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |