| 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 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
| 489 |
| 488 protected: | 490 protected: |
| 489 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 491 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 490 | 492 |
| 491 // Transmits the given input event. This is an internal helper for | 493 // Transmits the given input event. This is an internal helper for |
| 492 // |ForwardInputEvent()| and should not be used directly from elsewhere. | 494 // |ForwardInputEvent()| and should not be used directly from elsewhere. |
| 493 void SendInputEvent(const WebKit::WebInputEvent& input_event, | 495 void SendInputEvent(const WebKit::WebInputEvent& input_event, |
| 494 int event_size, const ui::LatencyInfo& latency_info, | 496 int event_size, const ui::LatencyInfo& latency_info, |
| 495 bool is_keyboard_shortcut); | 497 bool is_keyboard_shortcut); |
| 496 | 498 |
| 497 // Internal implementation of the public Forward*Event() methods. | 499 // 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_; | 917 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 916 | 918 |
| 917 int64 last_input_number_; | 919 int64 last_input_number_; |
| 918 | 920 |
| 919 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 921 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 920 }; | 922 }; |
| 921 | 923 |
| 922 } // namespace content | 924 } // namespace content |
| 923 | 925 |
| 924 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 926 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |