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