| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 void SetOverscrollControllerEnabled(bool enabled); | 488 void SetOverscrollControllerEnabled(bool enabled); |
| 489 | 489 |
| 490 // Suppreses future char events until a keydown. See | 490 // Suppreses future char events until a keydown. See |
| 491 // suppress_next_char_events_. | 491 // suppress_next_char_events_. |
| 492 void SuppressNextCharEvents(); | 492 void SuppressNextCharEvents(); |
| 493 | 493 |
| 494 // Indicates whether the renderer drives the RenderWidgetHosts's size or the | 494 // Indicates whether the renderer drives the RenderWidgetHosts's size or the |
| 495 // other way around. | 495 // other way around. |
| 496 bool should_auto_resize() { return should_auto_resize_; } | 496 bool should_auto_resize() { return should_auto_resize_; } |
| 497 | 497 |
| 498 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); |
| 498 void FrameSwapped(const ui::LatencyInfo& latency_info); | 499 void FrameSwapped(const ui::LatencyInfo& latency_info); |
| 499 | 500 |
| 500 // Returns the ID that uniquely describes this component to the latency | 501 // Returns the ID that uniquely describes this component to the latency |
| 501 // subsystem. | 502 // subsystem. |
| 502 int64 GetLatencyComponentId(); | 503 int64 GetLatencyComponentId(); |
| 503 | 504 |
| 504 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); | 505 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
| 505 | 506 |
| 506 // Don't check whether we expected a resize ack during layout tests. | 507 // Don't check whether we expected a resize ack during layout tests. |
| 507 static void DisableResizeAckCheckForTesting(); | 508 static void DisableResizeAckCheckForTesting(); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 int64 last_input_number_; | 939 int64 last_input_number_; |
| 939 | 940 |
| 940 BrowserRenderingStats rendering_stats_; | 941 BrowserRenderingStats rendering_stats_; |
| 941 | 942 |
| 942 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 943 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 943 }; | 944 }; |
| 944 | 945 |
| 945 } // namespace content | 946 } // namespace content |
| 946 | 947 |
| 947 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 948 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |