| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // properly handle the event (i.e. it has focus for keyboard events, or has | 214 // properly handle the event (i.e. it has focus for keyboard events, or has |
| 215 // been identified by hit testing mouse, touch or gesture events). | 215 // been identified by hit testing mouse, touch or gesture events). |
| 216 virtual uint32_t SurfaceIdNamespaceAtPoint( | 216 virtual uint32_t SurfaceIdNamespaceAtPoint( |
| 217 cc::SurfaceHittestDelegate* delegate, | 217 cc::SurfaceHittestDelegate* delegate, |
| 218 const gfx::Point& point, | 218 const gfx::Point& point, |
| 219 gfx::Point* transformed_point); | 219 gfx::Point* transformed_point); |
| 220 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 220 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 221 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} | 221 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} |
| 222 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} | 222 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} |
| 223 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 223 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 224 const ui::LatencyInfo& latency) {} | 224 const ui::LatencyInfo& latency) {} |
| 225 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
| 226 const ui::LatencyInfo& latency) {} |
| 225 | 227 |
| 226 // Transform a point that is in the coordinate space of a Surface that is | 228 // Transform a point that is in the coordinate space of a Surface that is |
| 227 // embedded within the RenderWidgetHostViewBase's Surface to the | 229 // embedded within the RenderWidgetHostViewBase's Surface to the |
| 228 // coordinate space of the embedding Surface. Typically this means that a | 230 // coordinate space of the embedding Surface. Typically this means that a |
| 229 // point was received from an out-of-process iframe's RenderWidget and needs | 231 // point was received from an out-of-process iframe's RenderWidget and needs |
| 230 // to be translated to viewport coordinates for the root RWHV, in which case | 232 // to be translated to viewport coordinates for the root RWHV, in which case |
| 231 // this method is called on the root RWHV with the out-of-process iframe's | 233 // this method is called on the root RWHV with the out-of-process iframe's |
| 232 // SurfaceId. | 234 // SurfaceId. |
| 233 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point, | 235 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 234 cc::SurfaceId original_surface, | 236 cc::SurfaceId original_surface, |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 473 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 472 | 474 |
| 473 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 475 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 474 | 476 |
| 475 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 477 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 476 }; | 478 }; |
| 477 | 479 |
| 478 } // namespace content | 480 } // namespace content |
| 479 | 481 |
| 480 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 482 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |