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

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

Issue 569653002: Add input coordinate information to InputLatency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use uint32 instead of size_t to unbreak IPC. Created 6 years, 2 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
498 blink::WebInputEvent::Type type,
499 const ui::LatencyInfo::InputCoordinate* logical_coordinates,
500 size_t logical_coordinates_size);
498 501
499 // Called when we receive a notification indicating that the renderer 502 // 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 503 // process has gone. This will reset our state so that our state will be
501 // consistent if a new renderer is created. 504 // consistent if a new renderer is created.
502 void RendererExited(base::TerminationStatus status, int exit_code); 505 void RendererExited(base::TerminationStatus status, int exit_code);
503 506
504 // Retrieves an id the renderer can use to refer to its view. 507 // Retrieves an id the renderer can use to refer to its view.
505 // This is used for various IPC messages, including plugins. 508 // This is used for various IPC messages, including plugins.
506 gfx::NativeViewId GetNativeViewId() const; 509 gfx::NativeViewId GetNativeViewId() const;
507 510
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 typedef std::map<int, 848 typedef std::map<int,
846 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 849 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
847 PendingSnapshotMap pending_browser_snapshots_; 850 PendingSnapshotMap pending_browser_snapshots_;
848 851
849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 852 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
850 }; 853 };
851 854
852 } // namespace content 855 } // namespace content
853 856
854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 857 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698