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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 // Returns the ID that uniquely describes this component to the latency | 541 // Returns the ID that uniquely describes this component to the latency |
542 // subsystem. | 542 // subsystem. |
543 int64 GetLatencyComponentId(); | 543 int64 GetLatencyComponentId(); |
544 | 544 |
545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); | 545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
546 | 546 |
547 // Don't check whether we expected a resize ack during layout tests. | 547 // Don't check whether we expected a resize ack during layout tests. |
548 static void DisableResizeAckCheckForTesting(); | 548 static void DisableResizeAckCheckForTesting(); |
549 | 549 |
| 550 void WindowSnapshotAsyncCallback( |
| 551 int routing_id, |
| 552 int snapshot_id, |
| 553 gfx::Size snapshot_size, |
| 554 scoped_refptr<base::RefCountedBytes> png_data); |
| 555 |
550 protected: | 556 protected: |
551 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 557 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
552 | 558 |
553 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT | 559 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT |
554 // component if it is not already in |original|. And if |original| is | 560 // component if it is not already in |original|. And if |original| is |
555 // not NULL, it is also merged into the resulting LatencyInfo. | 561 // not NULL, it is also merged into the resulting LatencyInfo. |
556 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( | 562 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( |
557 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); | 563 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); |
558 | 564 |
559 // Called when we receive a notification indicating that the renderer | 565 // Called when we receive a notification indicating that the renderer |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 int64 last_input_number_; | 928 int64 last_input_number_; |
923 | 929 |
924 BrowserRenderingStats rendering_stats_; | 930 BrowserRenderingStats rendering_stats_; |
925 | 931 |
926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 932 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
927 }; | 933 }; |
928 | 934 |
929 } // namespace content | 935 } // namespace content |
930 | 936 |
931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 937 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |