| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 // Indicates whether the renderer drives the RenderWidgetHosts's size or the | 479 // Indicates whether the renderer drives the RenderWidgetHosts's size or the |
| 480 // other way around. | 480 // other way around. |
| 481 bool should_auto_resize() { return should_auto_resize_; } | 481 bool should_auto_resize() { return should_auto_resize_; } |
| 482 | 482 |
| 483 void FrameSwapped(const ui::LatencyInfo& latency_info); | 483 void FrameSwapped(const ui::LatencyInfo& latency_info); |
| 484 | 484 |
| 485 // Returns the ID that uniquely describes this component to the latency | 485 // Returns the ID that uniquely describes this component to the latency |
| 486 // subsystem. | 486 // subsystem. |
| 487 int64 GetLatencyComponentId(); | 487 int64 GetLatencyComponentId(); |
| 488 | 488 |
| 489 // Don't check whether we expected a resize ack during layout tests. | |
| 490 static void DisableResizeAckCheckForTesting(); | |
| 491 | |
| 492 protected: | 489 protected: |
| 493 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 490 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 494 | 491 |
| 495 // Transmits the given input event. This is an internal helper for | 492 // Transmits the given input event. This is an internal helper for |
| 496 // |ForwardInputEvent()| and should not be used directly from elsewhere. | 493 // |ForwardInputEvent()| and should not be used directly from elsewhere. |
| 497 void SendInputEvent(const WebKit::WebInputEvent& input_event, | 494 void SendInputEvent(const WebKit::WebInputEvent& input_event, |
| 498 int event_size, const ui::LatencyInfo& latency_info, | 495 int event_size, const ui::LatencyInfo& latency_info, |
| 499 bool is_keyboard_shortcut); | 496 bool is_keyboard_shortcut); |
| 500 | 497 |
| 501 // Internal implementation of the public Forward*Event() methods. | 498 // Internal implementation of the public Forward*Event() methods. |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 int64 last_input_number_; | 918 int64 last_input_number_; |
| 922 | 919 |
| 923 BrowserRenderingStats rendering_stats_; | 920 BrowserRenderingStats rendering_stats_; |
| 924 | 921 |
| 925 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 922 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 926 }; | 923 }; |
| 927 | 924 |
| 928 } // namespace content | 925 } // namespace content |
| 929 | 926 |
| 930 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 927 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |