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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 // When there are multiple RenderWidgetHostViews for a single page, input | 255 // When there are multiple RenderWidgetHostViews for a single page, input |
256 // events need to be targeted to the correct one for handling. The following | 256 // events need to be targeted to the correct one for handling. The following |
257 // methods are invoked on the RenderWidgetHostView that should be able to | 257 // methods are invoked on the RenderWidgetHostView that should be able to |
258 // properly handle the event (i.e. it has focus for keyboard events, or has | 258 // properly handle the event (i.e. it has focus for keyboard events, or has |
259 // been identified by hit testing mouse, touch or gesture events). | 259 // been identified by hit testing mouse, touch or gesture events). |
260 virtual cc::FrameSinkId FrameSinkIdAtPoint( | 260 virtual cc::FrameSinkId FrameSinkIdAtPoint( |
261 cc::SurfaceHittestDelegate* delegate, | 261 cc::SurfaceHittestDelegate* delegate, |
262 const gfx::Point& point, | 262 const gfx::Point& point, |
263 gfx::Point* transformed_point); | 263 gfx::Point* transformed_point); |
264 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 264 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 265 const ui::LatencyInfo& latency) {} |
265 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, | 266 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, |
266 const ui::LatencyInfo& latency) {} | 267 const ui::LatencyInfo& latency) {} |
267 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 268 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
268 const ui::LatencyInfo& latency) {} | 269 const ui::LatencyInfo& latency) {} |
269 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 270 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
270 const ui::LatencyInfo& latency) {} | 271 const ui::LatencyInfo& latency) {} |
271 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, | 272 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
272 const ui::LatencyInfo& latency) {} | 273 const ui::LatencyInfo& latency) {} |
273 | 274 |
274 // Transform a point that is in the coordinate space of a Surface that is | 275 // Transform a point that is in the coordinate space of a Surface that is |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 468 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
468 | 469 |
469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 470 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
470 | 471 |
471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
472 }; | 473 }; |
473 | 474 |
474 } // namespace content | 475 } // namespace content |
475 | 476 |
476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |