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

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: 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 gfx::NativeViewAccessible GetParentNativeViewAccessible(); 488 gfx::NativeViewAccessible GetParentNativeViewAccessible();
489 #endif 489 #endif
490 490
491 protected: 491 protected:
492 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 492 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
493 493
494 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT 494 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
495 // component if it is not already in |original|. And if |original| is 495 // component if it is not already in |original|. And if |original| is
496 // not NULL, it is also merged into the resulting LatencyInfo. 496 // not NULL, it is also merged into the resulting LatencyInfo.
497 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( 497 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
498 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); 498 const ui::LatencyInfo* original, blink::WebInputEvent::Type type,
499 ui::LatencyInfo::LatencyScreenCoordinates coordinates);
499 500
500 // Called when we receive a notification indicating that the renderer 501 // Called when we receive a notification indicating that the renderer
501 // process has gone. This will reset our state so that our state will be 502 // process has gone. This will reset our state so that our state will be
502 // consistent if a new renderer is created. 503 // consistent if a new renderer is created.
503 void RendererExited(base::TerminationStatus status, int exit_code); 504 void RendererExited(base::TerminationStatus status, int exit_code);
504 505
505 // Retrieves an id the renderer can use to refer to its view. 506 // Retrieves an id the renderer can use to refer to its view.
506 // This is used for various IPC messages, including plugins. 507 // This is used for various IPC messages, including plugins.
507 gfx::NativeViewId GetNativeViewId() const; 508 gfx::NativeViewId GetNativeViewId() const;
508 509
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 typedef std::map<int, 844 typedef std::map<int,
844 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
845 PendingSnapshotMap pending_browser_snapshots_; 846 PendingSnapshotMap pending_browser_snapshots_;
846 847
847 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
848 }; 849 };
849 850
850 } // namespace content 851 } // namespace content
851 852
852 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698