Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 487 // The minimum size of this renderer when auto-resize is enabled. | 487 // The minimum size of this renderer when auto-resize is enabled. |
| 488 const gfx::Size& min_size_for_auto_resize() const { | 488 const gfx::Size& min_size_for_auto_resize() const { |
| 489 return min_size_for_auto_resize_; | 489 return min_size_for_auto_resize_; |
| 490 } | 490 } |
| 491 | 491 |
| 492 // The maximum size of this renderer when auto-resize is enabled. | 492 // The maximum size of this renderer when auto-resize is enabled. |
| 493 const gfx::Size& max_size_for_auto_resize() const { | 493 const gfx::Size& max_size_for_auto_resize() const { |
| 494 return max_size_for_auto_resize_; | 494 return max_size_for_auto_resize_; |
| 495 } | 495 } |
| 496 | 496 |
| 497 void FrameSwapped(const ui::LatencyInfo& latency_info); | |
| 498 void DidReceiveRendererFrame(); | 497 void DidReceiveRendererFrame(); |
| 499 | 498 |
| 500 // Returns the ID that uniquely describes this component to the latency | 499 // Returns the ID that uniquely describes this component to the latency |
| 501 // subsystem. | 500 // subsystem. |
| 502 int64_t GetLatencyComponentId() const; | 501 int64_t GetLatencyComponentId() const; |
| 503 | 502 |
| 504 static void CompositorFrameDrawn( | 503 static void OnGpuSwapBufersCompleted( |
| 505 const std::vector<ui::LatencyInfo>& latency_info); | 504 const std::vector<ui::LatencyInfo>& latency_info); |
| 506 | 505 |
| 507 // Don't check whether we expected a resize ack during layout tests. | 506 // Don't check whether we expected a resize ack during layout tests. |
| 508 static void DisableResizeAckCheckForTesting(); | 507 static void DisableResizeAckCheckForTesting(); |
| 509 | 508 |
| 510 InputRouter* input_router() { return input_router_.get(); } | 509 InputRouter* input_router() { return input_router_.get(); } |
| 511 | 510 |
| 512 // Get the BrowserAccessibilityManager for the root of the frame tree, | 511 // Get the BrowserAccessibilityManager for the root of the frame tree, |
| 513 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 512 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
| 514 | 513 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 618 | 617 |
| 619 // Called by |new_content_rendering_timeout_| if a renderer has loaded new | 618 // Called by |new_content_rendering_timeout_| if a renderer has loaded new |
| 620 // content but failed to produce a compositor frame in a defined time. | 619 // content but failed to produce a compositor frame in a defined time. |
| 621 void ClearDisplayedGraphics(); | 620 void ClearDisplayedGraphics(); |
| 622 | 621 |
| 623 // Called if we know the renderer is responsive. When we currently think the | 622 // Called if we know the renderer is responsive. When we currently think the |
| 624 // renderer is unresponsive, this will clear that state and call | 623 // renderer is unresponsive, this will clear that state and call |
| 625 // NotifyRendererResponsive. | 624 // NotifyRendererResponsive. |
| 626 void RendererIsResponsive(); | 625 void RendererIsResponsive(); |
| 627 | 626 |
| 627 void OnGpuSwapBufersCompletedInternal(const ui::LatencyInfo& latency_info); | |
|
tdresser
2017/04/03 15:57:11
Bufers -> Buffers
mfomitchev
2017/04/03 17:31:00
Done.
| |
| 628 | |
| 628 // IPC message handlers | 629 // IPC message handlers |
| 629 void OnRenderProcessGone(int status, int error_code); | 630 void OnRenderProcessGone(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 base::string16& tooltip_text, | 634 void OnSetTooltipText(const base::string16& tooltip_text, |
| 634 blink::WebTextDirection text_direction_hint); | 635 blink::WebTextDirection text_direction_hint); |
| 635 bool OnSwapCompositorFrame(const IPC::Message& message); | 636 bool OnSwapCompositorFrame(const IPC::Message& message); |
| 636 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); | 637 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); |
| 637 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 638 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 948 uint32_t last_compositor_frame_sink_id_ = 0; | 949 uint32_t last_compositor_frame_sink_id_ = 0; |
| 949 | 950 |
| 950 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 951 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 951 | 952 |
| 952 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 953 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 953 }; | 954 }; |
| 954 | 955 |
| 955 } // namespace content | 956 } // namespace content |
| 956 | 957 |
| 957 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 958 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |