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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 582 |
583 // SyntheticGestureController::Delegate: | 583 // SyntheticGestureController::Delegate: |
584 void RequestBeginFrameForSynthesizedInput( | 584 void RequestBeginFrameForSynthesizedInput( |
585 base::OnceClosure begin_frame_callback) override; | 585 base::OnceClosure begin_frame_callback) override; |
586 bool HasGestureStopped() override; | 586 bool HasGestureStopped() override; |
587 | 587 |
588 // cc::mojom::MojoCompositorFrameSink implementation. | 588 // cc::mojom::MojoCompositorFrameSink implementation. |
589 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 589 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
590 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 590 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
591 cc::CompositorFrame frame) override; | 591 cc::CompositorFrame frame) override; |
592 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; | 592 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override; |
593 void EvictCurrentSurface() override {} | 593 void EvictCurrentSurface() override {} |
594 | 594 |
595 protected: | 595 protected: |
596 // --------------------------------------------------------------------------- | 596 // --------------------------------------------------------------------------- |
597 // The following method is overridden by RenderViewHost to send upwards to | 597 // The following method is overridden by RenderViewHost to send upwards to |
598 // its delegate. | 598 // its delegate. |
599 | 599 |
600 // Callback for notification that we failed to receive any rendered graphics | 600 // Callback for notification that we failed to receive any rendered graphics |
601 // from a newly loaded page. Used for testing. | 601 // from a newly loaded page. Used for testing. |
602 virtual void NotifyNewContentRenderingTimeoutForTesting() {} | 602 virtual void NotifyNewContentRenderingTimeoutForTesting() {} |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info); | 644 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info); |
645 | 645 |
646 | 646 |
647 // IPC message handlers | 647 // IPC message handlers |
648 void OnRenderProcessGone(int status, int error_code); | 648 void OnRenderProcessGone(int status, int error_code); |
649 void OnClose(); | 649 void OnClose(); |
650 void OnUpdateScreenRectsAck(); | 650 void OnUpdateScreenRectsAck(); |
651 void OnRequestMove(const gfx::Rect& pos); | 651 void OnRequestMove(const gfx::Rect& pos); |
652 void OnSetTooltipText(const base::string16& tooltip_text, | 652 void OnSetTooltipText(const base::string16& tooltip_text, |
653 blink::WebTextDirection text_direction_hint); | 653 blink::WebTextDirection text_direction_hint); |
654 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); | |
655 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 654 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
656 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); | 655 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); |
657 void OnSetCursor(const WebCursor& cursor); | 656 void OnSetCursor(const WebCursor& cursor); |
658 void OnTextInputStateChanged(const TextInputState& params); | 657 void OnTextInputStateChanged(const TextInputState& params); |
659 | 658 |
660 void OnImeCompositionRangeChanged( | 659 void OnImeCompositionRangeChanged( |
661 const gfx::Range& range, | 660 const gfx::Range& range, |
662 const std::vector<gfx::Rect>& character_bounds); | 661 const std::vector<gfx::Rect>& character_bounds); |
663 void OnImeCancelComposition(); | 662 void OnImeCancelComposition(); |
664 void OnLockMouse(bool user_gesture, | 663 void OnLockMouse(bool user_gesture, |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 base::OnceClosure begin_frame_callback_; | 988 base::OnceClosure begin_frame_callback_; |
990 | 989 |
991 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 990 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
992 | 991 |
993 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 992 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
994 }; | 993 }; |
995 | 994 |
996 } // namespace content | 995 } // namespace content |
997 | 996 |
998 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 997 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |