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

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

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Restrict to RawKeyDown and Char events on Android & Mac Created 3 years, 7 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698