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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 | 543 |
544 // Don't check whether we expected a resize ack during layout tests. | 544 // Don't check whether we expected a resize ack during layout tests. |
545 static void DisableResizeAckCheckForTesting(); | 545 static void DisableResizeAckCheckForTesting(); |
546 | 546 |
547 void WindowSnapshotAsyncCallback( | 547 void WindowSnapshotAsyncCallback( |
548 int routing_id, | 548 int routing_id, |
549 int snapshot_id, | 549 int snapshot_id, |
550 gfx::Size snapshot_size, | 550 gfx::Size snapshot_size, |
551 scoped_refptr<base::RefCountedBytes> png_data); | 551 scoped_refptr<base::RefCountedBytes> png_data); |
552 | 552 |
| 553 // LatencyComponents generated in the renderer must have component IDs |
| 554 // provided to them by the browser process. This function adds the correct |
| 555 // component ID where necessary. |
| 556 void AddLatencyInfoComponentIds(ui::LatencyInfo* latency_info); |
| 557 |
553 protected: | 558 protected: |
554 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 559 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
555 | 560 |
556 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT | 561 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT |
557 // component if it is not already in |original|. And if |original| is | 562 // component if it is not already in |original|. And if |original| is |
558 // not NULL, it is also merged into the resulting LatencyInfo. | 563 // not NULL, it is also merged into the resulting LatencyInfo. |
559 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( | 564 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( |
560 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); | 565 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); |
561 | 566 |
562 // Called when we receive a notification indicating that the renderer | 567 // Called when we receive a notification indicating that the renderer |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 int64 last_input_number_; | 931 int64 last_input_number_; |
927 | 932 |
928 BrowserRenderingStats rendering_stats_; | 933 BrowserRenderingStats rendering_stats_; |
929 | 934 |
930 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 935 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
931 }; | 936 }; |
932 | 937 |
933 } // namespace content | 938 } // namespace content |
934 | 939 |
935 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 940 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |