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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 // SyntheticGestureController::Delegate: | 585 // SyntheticGestureController::Delegate: |
586 void RequestBeginFrameForSynthesizedInput( | 586 void RequestBeginFrameForSynthesizedInput( |
587 base::OnceClosure begin_frame_callback) override; | 587 base::OnceClosure begin_frame_callback) override; |
588 bool HasGestureStopped() override; | 588 bool HasGestureStopped() override; |
589 | 589 |
590 // cc::mojom::MojoCompositorFrameSink implementation. | 590 // cc::mojom::MojoCompositorFrameSink implementation. |
591 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 591 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
592 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 592 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
593 cc::CompositorFrame frame) override; | 593 cc::CompositorFrame frame) override; |
594 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override; | 594 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override; |
595 void EvictCurrentSurface() override {} | |
596 | 595 |
597 protected: | 596 protected: |
598 // --------------------------------------------------------------------------- | 597 // --------------------------------------------------------------------------- |
599 // The following method is overridden by RenderViewHost to send upwards to | 598 // The following method is overridden by RenderViewHost to send upwards to |
600 // its delegate. | 599 // its delegate. |
601 | 600 |
602 // Callback for notification that we failed to receive any rendered graphics | 601 // Callback for notification that we failed to receive any rendered graphics |
603 // from a newly loaded page. Used for testing. | 602 // from a newly loaded page. Used for testing. |
604 virtual void NotifyNewContentRenderingTimeoutForTesting() {} | 603 virtual void NotifyNewContentRenderingTimeoutForTesting() {} |
605 | 604 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 base::OnceClosure begin_frame_callback_; | 989 base::OnceClosure begin_frame_callback_; |
991 | 990 |
992 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 991 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
993 | 992 |
994 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 993 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
995 }; | 994 }; |
996 | 995 |
997 } // namespace content | 996 } // namespace content |
998 | 997 |
999 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 998 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |