| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 namespace media { | 44 namespace media { |
| 45 class VideoFrame; | 45 class VideoFrame; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 struct WebScreenInfo; | 49 struct WebScreenInfo; |
| 50 class WebMouseEvent; | 50 class WebMouseEvent; |
| 51 class WebMouseWheelEvent; | 51 class WebMouseWheelEvent; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace cc { | |
| 55 class SurfaceHittestDelegate; | |
| 56 } | |
| 57 | |
| 58 namespace ui { | 54 namespace ui { |
| 59 class LatencyInfo; | 55 class LatencyInfo; |
| 60 } | 56 } |
| 61 | 57 |
| 62 namespace content { | 58 namespace content { |
| 63 class BrowserAccessibilityDelegate; | 59 class BrowserAccessibilityDelegate; |
| 64 class BrowserAccessibilityManager; | 60 class BrowserAccessibilityManager; |
| 65 class SyntheticGesture; | 61 class SyntheticGesture; |
| 66 class SyntheticGestureTarget; | 62 class SyntheticGestureTarget; |
| 67 class WebCursor; | 63 class WebCursor; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 189 |
| 194 // Returns the compositing surface ID namespace, or 0 if Surfaces are not | 190 // Returns the compositing surface ID namespace, or 0 if Surfaces are not |
| 195 // enabled. | 191 // enabled. |
| 196 virtual uint32_t GetSurfaceIdNamespace(); | 192 virtual uint32_t GetSurfaceIdNamespace(); |
| 197 | 193 |
| 198 // When there are multiple RenderWidgetHostViews for a single page, input | 194 // When there are multiple RenderWidgetHostViews for a single page, input |
| 199 // events need to be targeted to the correct one for handling. The following | 195 // events need to be targeted to the correct one for handling. The following |
| 200 // methods are invoked on the RenderWidgetHostView that should be able to | 196 // methods are invoked on the RenderWidgetHostView that should be able to |
| 201 // properly handle the event (i.e. it has focus for keyboard events, or has | 197 // properly handle the event (i.e. it has focus for keyboard events, or has |
| 202 // been identified by hit testing mouse, touch or gesture events). | 198 // been identified by hit testing mouse, touch or gesture events). |
| 203 virtual uint32_t SurfaceIdNamespaceAtPoint( | 199 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, |
| 204 cc::SurfaceHittestDelegate* delegate, | 200 gfx::Point* transformed_point); |
| 205 const gfx::Point& point, | |
| 206 gfx::Point* transformed_point); | |
| 207 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 201 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 208 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} | 202 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} |
| 209 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} | 203 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} |
| 210 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 204 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 211 const ui::LatencyInfo& latency) {} | 205 const ui::LatencyInfo& latency) {} |
| 212 | 206 |
| 213 // If a RenderWidgetHost is dealing with points that are transformed from the | 207 // If a RenderWidgetHost is dealing with points that are transformed from the |
| 214 // root frame for a page (i.e. because its content is contained within | 208 // root frame for a page (i.e. because its content is contained within |
| 215 // that of another RenderWidgetHost), this provides a facility to convert | 209 // that of another RenderWidgetHost), this provides a facility to convert |
| 216 // a point from its own coordinate space to that of the root frame. | 210 // a point from its own coordinate space to that of the root frame. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 base::OneShotTimer flush_input_timer_; | 448 base::OneShotTimer flush_input_timer_; |
| 455 | 449 |
| 456 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 457 | 451 |
| 458 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 459 }; | 453 }; |
| 460 | 454 |
| 461 } // namespace content | 455 } // namespace content |
| 462 | 456 |
| 463 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |