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

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

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Fix test issue Created 3 years, 8 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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Used in tests to set a mock client for touch selection controller. It will 301 // Used in tests to set a mock client for touch selection controller. It will
302 // create a new touch selection controller for the new client. 302 // create a new touch selection controller for the new client.
303 void SetSelectionControllerClientForTest( 303 void SetSelectionControllerClientForTest(
304 std::unique_ptr<TouchSelectionControllerClientAura> client); 304 std::unique_ptr<TouchSelectionControllerClientAura> client);
305 305
306 // Exposed for tests. 306 // Exposed for tests.
307 cc::SurfaceId SurfaceIdForTesting() const override; 307 cc::SurfaceId SurfaceIdForTesting() const override;
308 308
309 // RenderWidgetHostViewEventHandler::Delegate: 309 // RenderWidgetHostViewEventHandler::Delegate:
310 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; 310 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
311 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event, 311 void ForwardKeyboardEventWithLatencyInfo(const NativeWebKeyboardEvent& event,
312 bool* update_event) override; 312 const ui::LatencyInfo& latency,
313 bool* update_event) override;
313 RenderFrameHostImpl* GetFocusedFrame(); 314 RenderFrameHostImpl* GetFocusedFrame();
314 bool NeedsMouseCapture() override; 315 bool NeedsMouseCapture() override;
315 void SetTooltipsEnabled(bool enable) override; 316 void SetTooltipsEnabled(bool enable) override;
316 void ShowContextMenu(const ContextMenuParams& params) override; 317 void ShowContextMenu(const ContextMenuParams& params) override;
317 void Shutdown() override; 318 void Shutdown() override;
318 319
319 RenderWidgetHostViewEventHandler* event_handler() { 320 RenderWidgetHostViewEventHandler* event_handler() {
320 return event_handler_.get(); 321 return event_handler_.get();
321 } 322 }
322 323
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 575 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
575 576
576 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 577 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
577 578
578 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 579 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
579 }; 580 };
580 581
581 } // namespace content 582 } // namespace content
582 583
583 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 584 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698