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

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

Issue 541033003: Added coordinates information to InputLatency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses code style comments Created 6 years, 3 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 gfx::NativeViewAccessible GetParentNativeViewAccessible(); 487 gfx::NativeViewAccessible GetParentNativeViewAccessible();
488 #endif 488 #endif
489 489
490 protected: 490 protected:
491 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 491 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
492 492
493 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT 493 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
494 // component if it is not already in |original|. And if |original| is 494 // component if it is not already in |original|. And if |original| is
495 // not NULL, it is also merged into the resulting LatencyInfo. 495 // not NULL, it is also merged into the resulting LatencyInfo.
496 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( 496 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
497 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); 497 const ui::LatencyInfo* original, blink::WebInputEvent::Type type,
498 const ui::LatencyInfo::InputCoordinates& logical_coordinates);
498 499
499 // Called when we receive a notification indicating that the renderer 500 // Called when we receive a notification indicating that the renderer
500 // process has gone. This will reset our state so that our state will be 501 // process has gone. This will reset our state so that our state will be
501 // consistent if a new renderer is created. 502 // consistent if a new renderer is created.
502 void RendererExited(base::TerminationStatus status, int exit_code); 503 void RendererExited(base::TerminationStatus status, int exit_code);
503 504
504 // Retrieves an id the renderer can use to refer to its view. 505 // Retrieves an id the renderer can use to refer to its view.
505 // This is used for various IPC messages, including plugins. 506 // This is used for various IPC messages, including plugins.
506 gfx::NativeViewId GetNativeViewId() const; 507 gfx::NativeViewId GetNativeViewId() const;
507 508
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 typedef std::map<int, 840 typedef std::map<int,
840 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 841 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
841 PendingSnapshotMap pending_browser_snapshots_; 842 PendingSnapshotMap pending_browser_snapshots_;
842 843
843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 844 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
844 }; 845 };
845 846
846 } // namespace content 847 } // namespace content
847 848
848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 849 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698