Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 1993383002: Adding Event.Latency.Browser.WheelUI, Passing latency_info to ProcessMouse/MouseWheelEvent functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // When there are multiple RenderWidgetHostViews for a single page, input 218 // When there are multiple RenderWidgetHostViews for a single page, input
219 // events need to be targeted to the correct one for handling. The following 219 // events need to be targeted to the correct one for handling. The following
220 // methods are invoked on the RenderWidgetHostView that should be able to 220 // methods are invoked on the RenderWidgetHostView that should be able to
221 // properly handle the event (i.e. it has focus for keyboard events, or has 221 // properly handle the event (i.e. it has focus for keyboard events, or has
222 // been identified by hit testing mouse, touch or gesture events). 222 // been identified by hit testing mouse, touch or gesture events).
223 virtual uint32_t SurfaceIdNamespaceAtPoint( 223 virtual uint32_t SurfaceIdNamespaceAtPoint(
224 cc::SurfaceHittestDelegate* delegate, 224 cc::SurfaceHittestDelegate* delegate,
225 const gfx::Point& point, 225 const gfx::Point& point,
226 gfx::Point* transformed_point); 226 gfx::Point* transformed_point);
227 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} 227 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {}
228 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} 228 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event,
229 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} 229 const ui::LatencyInfo& latency) {}
230 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event,
231 const ui::LatencyInfo& latency) {}
230 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, 232 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event,
231 const ui::LatencyInfo& latency) {} 233 const ui::LatencyInfo& latency) {}
232 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event, 234 virtual void ProcessGestureEvent(const blink::WebGestureEvent& event,
233 const ui::LatencyInfo& latency) {} 235 const ui::LatencyInfo& latency) {}
234 236
235 // Transform a point that is in the coordinate space of a Surface that is 237 // Transform a point that is in the coordinate space of a Surface that is
236 // embedded within the RenderWidgetHostViewBase's Surface to the 238 // embedded within the RenderWidgetHostViewBase's Surface to the
237 // coordinate space of the embedding Surface. Typically this means that a 239 // coordinate space of the embedding Surface. Typically this means that a
238 // point was received from an out-of-process iframe's RenderWidget and needs 240 // point was received from an out-of-process iframe's RenderWidget and needs
239 // to be translated to viewport coordinates for the root RWHV, in which case 241 // to be translated to viewport coordinates for the root RWHV, in which case
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 440 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
439 441
440 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 442 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
441 443
442 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 444 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
443 }; 445 };
444 446
445 } // namespace content 447 } // namespace content
446 448
447 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 449 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698