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