| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // When there are multiple RenderWidgetHostViews for a single page, input | 215 // When there are multiple RenderWidgetHostViews for a single page, input |
| 216 // events need to be targeted to the correct one for handling. The following | 216 // events need to be targeted to the correct one for handling. The following |
| 217 // methods are invoked on the RenderWidgetHostView that should be able to | 217 // methods are invoked on the RenderWidgetHostView that should be able to |
| 218 // properly handle the event (i.e. it has focus for keyboard events, or has | 218 // properly handle the event (i.e. it has focus for keyboard events, or has |
| 219 // been identified by hit testing mouse, touch or gesture events). | 219 // been identified by hit testing mouse, touch or gesture events). |
| 220 virtual uint32_t SurfaceIdNamespaceAtPoint( | 220 virtual uint32_t SurfaceIdNamespaceAtPoint( |
| 221 cc::SurfaceHittestDelegate* delegate, | 221 cc::SurfaceHittestDelegate* delegate, |
| 222 const gfx::Point& point, | 222 const gfx::Point& point, |
| 223 gfx::Point* transformed_point); | 223 gfx::Point* transformed_point); |
| 224 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 224 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 225 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} | 225 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 226 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} | 226 const ui::LatencyInfo& latency) {} |
| 227 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| 228 const ui::LatencyInfo& latency) {} |
| 227 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 229 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 228 const ui::LatencyInfo& latency) {} | 230 const ui::LatencyInfo& latency) {} |
| 229 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, | 231 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 230 const ui::LatencyInfo& latency) {} | 232 const ui::LatencyInfo& latency) {} |
| 231 | 233 |
| 232 // Transform a point that is in the coordinate space of a Surface that is | 234 // Transform a point that is in the coordinate space of a Surface that is |
| 233 // embedded within the RenderWidgetHostViewBase's Surface to the | 235 // embedded within the RenderWidgetHostViewBase's Surface to the |
| 234 // coordinate space of the embedding Surface. Typically this means that a | 236 // coordinate space of the embedding Surface. Typically this means that a |
| 235 // point was received from an out-of-process iframe's RenderWidget and needs | 237 // point was received from an out-of-process iframe's RenderWidget and needs |
| 236 // to be translated to viewport coordinates for the root RWHV, in which case | 238 // to be translated to viewport coordinates for the root RWHV, in which case |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 437 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 436 | 438 |
| 437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 439 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 438 | 440 |
| 439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 441 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 440 }; | 442 }; |
| 441 | 443 |
| 442 } // namespace content | 444 } // namespace content |
| 443 | 445 |
| 444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 446 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |