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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 // When there are multiple RenderWidgetHostViews for a single page, input | 258 // When there are multiple RenderWidgetHostViews for a single page, input |
259 // events need to be targeted to the correct one for handling. The following | 259 // events need to be targeted to the correct one for handling. The following |
260 // methods are invoked on the RenderWidgetHostView that should be able to | 260 // methods are invoked on the RenderWidgetHostView that should be able to |
261 // properly handle the event (i.e. it has focus for keyboard events, or has | 261 // properly handle the event (i.e. it has focus for keyboard events, or has |
262 // been identified by hit testing mouse, touch or gesture events). | 262 // been identified by hit testing mouse, touch or gesture events). |
263 virtual cc::FrameSinkId FrameSinkIdAtPoint( | 263 virtual cc::FrameSinkId FrameSinkIdAtPoint( |
264 cc::SurfaceHittestDelegate* delegate, | 264 cc::SurfaceHittestDelegate* delegate, |
265 const gfx::Point& point, | 265 const gfx::Point& point, |
266 gfx::Point* transformed_point); | 266 gfx::Point* transformed_point); |
267 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 267 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 268 const ui::LatencyInfo& latency) {} |
268 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, | 269 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event, |
269 const ui::LatencyInfo& latency) {} | 270 const ui::LatencyInfo& latency) {} |
270 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 271 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
271 const ui::LatencyInfo& latency) {} | 272 const ui::LatencyInfo& latency) {} |
272 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, | 273 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, |
273 const ui::LatencyInfo& latency) {} | 274 const ui::LatencyInfo& latency) {} |
274 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, | 275 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, |
275 const ui::LatencyInfo& latency) {} | 276 const ui::LatencyInfo& latency) {} |
276 | 277 |
277 // Transform a point that is in the coordinate space of a Surface that is | 278 // Transform a point that is in the coordinate space of a Surface that is |
(...skipping 189 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 |