| 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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 580 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 581 | 581 |
| 582 const cc::CompositorFrameMetadata& last_frame_metadata() { | 582 const cc::CompositorFrameMetadata& last_frame_metadata() { |
| 583 return last_frame_metadata_; | 583 return last_frame_metadata_; |
| 584 } | 584 } |
| 585 | 585 |
| 586 // cc::mojom::MojoCompositorFrameSink implementation. | 586 // cc::mojom::MojoCompositorFrameSink implementation. |
| 587 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 587 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 588 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 588 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 589 cc::CompositorFrame frame) override; | 589 cc::CompositorFrame frame) override; |
| 590 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; | 590 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) override; |
| 591 void EvictCurrentSurface() override {} | 591 void EvictCurrentSurface() override {} |
| 592 | 592 |
| 593 protected: | 593 protected: |
| 594 // --------------------------------------------------------------------------- | 594 // --------------------------------------------------------------------------- |
| 595 // The following method is overridden by RenderViewHost to send upwards to | 595 // The following method is overridden by RenderViewHost to send upwards to |
| 596 // its delegate. | 596 // its delegate. |
| 597 | 597 |
| 598 // Callback for notification that we failed to receive any rendered graphics | 598 // Callback for notification that we failed to receive any rendered graphics |
| 599 // from a newly loaded page. Used for testing. | 599 // from a newly loaded page. Used for testing. |
| 600 virtual void NotifyNewContentRenderingTimeoutForTesting() {} | 600 virtual void NotifyNewContentRenderingTimeoutForTesting() {} |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 | 641 |
| 642 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info); | 642 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info); |
| 643 | 643 |
| 644 // IPC message handlers | 644 // IPC message handlers |
| 645 void OnRenderProcessGone(int status, int error_code); | 645 void OnRenderProcessGone(int status, int error_code); |
| 646 void OnClose(); | 646 void OnClose(); |
| 647 void OnUpdateScreenRectsAck(); | 647 void OnUpdateScreenRectsAck(); |
| 648 void OnRequestMove(const gfx::Rect& pos); | 648 void OnRequestMove(const gfx::Rect& pos); |
| 649 void OnSetTooltipText(const base::string16& tooltip_text, | 649 void OnSetTooltipText(const base::string16& tooltip_text, |
| 650 blink::WebTextDirection text_direction_hint); | 650 blink::WebTextDirection text_direction_hint); |
| 651 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); | |
| 652 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 651 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 653 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); | 652 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); |
| 654 void OnSetCursor(const WebCursor& cursor); | 653 void OnSetCursor(const WebCursor& cursor); |
| 655 void OnTextInputStateChanged(const TextInputState& params); | 654 void OnTextInputStateChanged(const TextInputState& params); |
| 656 | 655 |
| 657 void OnImeCompositionRangeChanged( | 656 void OnImeCompositionRangeChanged( |
| 658 const gfx::Range& range, | 657 const gfx::Range& range, |
| 659 const std::vector<gfx::Rect>& character_bounds); | 658 const std::vector<gfx::Rect>& character_bounds); |
| 660 void OnImeCancelComposition(); | 659 void OnImeCancelComposition(); |
| 661 void OnLockMouse(bool user_gesture, | 660 void OnLockMouse(bool user_gesture, |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; | 983 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; |
| 985 | 984 |
| 986 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 985 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 987 | 986 |
| 988 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 987 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 989 }; | 988 }; |
| 990 | 989 |
| 991 } // namespace content | 990 } // namespace content |
| 992 | 991 |
| 993 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 992 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |