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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // Suppreses future char events until a keydown. See | 493 // Suppreses future char events until a keydown. See |
494 // suppress_next_char_events_. | 494 // suppress_next_char_events_. |
495 void SuppressNextCharEvents(); | 495 void SuppressNextCharEvents(); |
496 | 496 |
497 // Indicates whether the renderer drives the RenderWidgetHosts's size or the | 497 // Indicates whether the renderer drives the RenderWidgetHosts's size or the |
498 // other way around. | 498 // other way around. |
499 bool should_auto_resize() { return should_auto_resize_; } | 499 bool should_auto_resize() { return should_auto_resize_; } |
500 | 500 |
501 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); | 501 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); |
502 void FrameSwapped(const ui::LatencyInfo& latency_info); | 502 void FrameSwapped(const ui::LatencyInfo& latency_info); |
| 503 void DidReceieveRendererFrame(); |
503 | 504 |
504 // Returns the ID that uniquely describes this component to the latency | 505 // Returns the ID that uniquely describes this component to the latency |
505 // subsystem. | 506 // subsystem. |
506 int64 GetLatencyComponentId(); | 507 int64 GetLatencyComponentId(); |
507 | 508 |
508 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); | 509 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
509 | 510 |
510 // Don't check whether we expected a resize ack during layout tests. | 511 // Don't check whether we expected a resize ack during layout tests. |
511 static void DisableResizeAckCheckForTesting(); | 512 static void DisableResizeAckCheckForTesting(); |
512 | 513 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 627 |
627 // IPC message handlers | 628 // IPC message handlers |
628 void OnRenderViewReady(); | 629 void OnRenderViewReady(); |
629 void OnRenderViewGone(int status, int error_code); | 630 void OnRenderViewGone(int status, int error_code); |
630 void OnClose(); | 631 void OnClose(); |
631 void OnUpdateScreenRectsAck(); | 632 void OnUpdateScreenRectsAck(); |
632 void OnRequestMove(const gfx::Rect& pos); | 633 void OnRequestMove(const gfx::Rect& pos); |
633 void OnSetTooltipText(const string16& tooltip_text, | 634 void OnSetTooltipText(const string16& tooltip_text, |
634 WebKit::WebTextDirection text_direction_hint); | 635 WebKit::WebTextDirection text_direction_hint); |
635 void OnPaintAtSizeAck(int tag, const gfx::Size& size); | 636 void OnPaintAtSizeAck(int tag, const gfx::Size& size); |
| 637 #if defined(OS_MACOSX) |
636 void OnCompositorSurfaceBuffersSwapped( | 638 void OnCompositorSurfaceBuffersSwapped( |
637 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); | 639 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
| 640 #endif |
638 bool OnSwapCompositorFrame(const IPC::Message& message); | 641 bool OnSwapCompositorFrame(const IPC::Message& message); |
639 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 642 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
640 gfx::Vector2dF current_fling_velocity); | 643 gfx::Vector2dF current_fling_velocity); |
641 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 644 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
642 void OnUpdateIsDelayed(); | 645 void OnUpdateIsDelayed(); |
643 void OnInputEventAck(WebKit::WebInputEvent::Type event_type, | 646 void OnInputEventAck(WebKit::WebInputEvent::Type event_type, |
644 InputEventAckState ack_result); | 647 InputEventAckState ack_result); |
645 void OnBeginSmoothScroll( | 648 void OnBeginSmoothScroll( |
646 const ViewHostMsg_BeginSmoothScroll_Params& params); | 649 const ViewHostMsg_BeginSmoothScroll_Params& params); |
647 void OnSelectRangeAck(); | 650 void OnSelectRangeAck(); |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 int64 last_input_number_; | 945 int64 last_input_number_; |
943 | 946 |
944 BrowserRenderingStats rendering_stats_; | 947 BrowserRenderingStats rendering_stats_; |
945 | 948 |
946 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 949 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
947 }; | 950 }; |
948 | 951 |
949 } // namespace content | 952 } // namespace content |
950 | 953 |
951 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 954 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |