OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |