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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace media { | 39 namespace media { |
40 class VideoFrame; | 40 class VideoFrame; |
41 } | 41 } |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 struct WebScreenInfo; | 44 struct WebScreenInfo; |
45 class WebMouseEvent; | 45 class WebMouseEvent; |
46 class WebMouseWheelEvent; | 46 class WebMouseWheelEvent; |
47 } | 47 } |
48 | 48 |
| 49 namespace ui { |
| 50 class LatencyInfo; |
| 51 } |
| 52 |
49 namespace content { | 53 namespace content { |
50 class BrowserAccessibilityDelegate; | 54 class BrowserAccessibilityDelegate; |
51 class BrowserAccessibilityManager; | 55 class BrowserAccessibilityManager; |
52 class SyntheticGesture; | 56 class SyntheticGesture; |
53 class SyntheticGestureTarget; | 57 class SyntheticGestureTarget; |
54 class WebCursor; | 58 class WebCursor; |
55 struct DidOverscrollParams; | 59 struct DidOverscrollParams; |
56 struct NativeWebKeyboardEvent; | 60 struct NativeWebKeyboardEvent; |
57 struct WebPluginGeometry; | 61 struct WebPluginGeometry; |
58 | 62 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // When there are multiple RenderWidgetHostViews for a single page, input | 189 // When there are multiple RenderWidgetHostViews for a single page, input |
186 // events need to be targeted to the correct one for handling. The following | 190 // events need to be targeted to the correct one for handling. The following |
187 // methods are invoked on the RenderWidgetHostView that should be able to | 191 // methods are invoked on the RenderWidgetHostView that should be able to |
188 // properly handle the event (i.e. it has focus for keyboard events, or has | 192 // properly handle the event (i.e. it has focus for keyboard events, or has |
189 // been identified by hit testing mouse, touch or gesture events). | 193 // been identified by hit testing mouse, touch or gesture events). |
190 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, | 194 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, |
191 gfx::Point* transformed_point); | 195 gfx::Point* transformed_point); |
192 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 196 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
193 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} | 197 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} |
194 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} | 198 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} |
| 199 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| 200 const ui::LatencyInfo& latency) {} |
195 | 201 |
196 // If a RenderWidgetHost is dealing with points that are transformed from the | 202 // If a RenderWidgetHost is dealing with points that are transformed from the |
197 // root frame for a page (i.e. because its content is contained within | 203 // root frame for a page (i.e. because its content is contained within |
198 // that of another RenderWidgetHost), this provides a facility to convert | 204 // that of another RenderWidgetHost), this provides a facility to convert |
199 // a point from its own coordinate space to that of the root frame. | 205 // a point from its own coordinate space to that of the root frame. |
200 // This only needs to be overriden by RenderWidgetHostView subclasses | 206 // This only needs to be overriden by RenderWidgetHostView subclasses |
201 // that handle content embedded within other RenderWidgetHostViews. | 207 // that handle content embedded within other RenderWidgetHostViews. |
202 virtual void TransformPointToRootCoordSpace(const gfx::Point& point, | 208 virtual void TransformPointToRootCoordSpace(const gfx::Point& point, |
203 gfx::Point* transformed_point); | 209 gfx::Point* transformed_point); |
204 | 210 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 base::OneShotTimer flush_input_timer_; | 450 base::OneShotTimer flush_input_timer_; |
445 | 451 |
446 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 452 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
447 | 453 |
448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 454 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
449 }; | 455 }; |
450 | 456 |
451 } // namespace content | 457 } // namespace content |
452 | 458 |
453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 459 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |