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