| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REMOTE_FRAME_CLIENT_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REMOTE_FRAME_CLIENT_H_ |
| |
| #include "base/optional.h" |
| #include "cc/paint/paint_canvas.h" |
| #include "third_party/blink/public/mojom/blob/blob_url_store.mojom-blink-forward.h" |
| #include "third_party/blink/public/mojom/frame/viewport_intersection_state.mojom-blink-forward.h" |
| #include "third_party/blink/public/platform/web_impression.h" |
| #include "third_party/blink/public/web/web_frame_load_type.h" |
| #include "third_party/blink/renderer/core/frame/frame_client.h" |
| #include "third_party/blink/renderer/core/frame/frame_types.h" |
| #include "third_party/blink/renderer/platform/graphics/touch_action.h" |
| |
| namespace viz { |
| class FrameSinkId; |
| } |
| |
| namespace blink { |
| class AssociatedInterfaceProvider; |
| class IntRect; |
| class ResourceRequest; |
| struct ScreenInfo; |
| class WebLocalFrame; |
| |
| class RemoteFrameClient : public FrameClient { |
| public: |
| ~RemoteFrameClient() override = default; |
| |
| virtual void Navigate(const ResourceRequest&, |
| blink::WebLocalFrame* initiator_frame, |
| bool should_replace_current_entry, |
| bool is_opener_navigation, |
| bool initiator_frame_has_download_sandbox_flag, |
| bool initiator_frame_is_ad, |
| mojo::PendingRemote<mojom::blink::BlobURLToken>, |
| const base::Optional<WebImpression>& impression) = 0; |
| unsigned BackForwardLength() override = 0; |
| |
| // Forwards a change to the rects of a remote frame. |local_frame_rect| is the |
| // size of the frame in its parent's coordinate space prior to applying CSS |
| // transforms. |screen_space_rect| is in the screen's coordinate space, after |
| // CSS transforms are applied. |
| virtual void FrameRectsChanged(const IntRect& local_frame_rect, |
| const IntRect& screen_space_rect) = 0; |
| |
| virtual void ZoomLevelChanged(double zoom_level) = 0; |
| |
| virtual void UpdateCaptureSequenceNumber(uint32_t sequence_number) = 0; |
| |
| virtual void PageScaleFactorChanged(float page_scale_factor, |
| bool is_pinch_gesture_active) = 0; |
| |
| virtual void DidChangeScreenInfo(const ScreenInfo& original_screen_info) = 0; |
| |
| virtual void DidChangeRootWindowSegments( |
| const std::vector<gfx::Rect>& root_widget_window_segments) = 0; |
| |
| virtual void DidChangeVisibleViewportSize( |
| const gfx::Size& visible_viewport_size) = 0; |
| |
| virtual void SynchronizeVisualProperties() = 0; |
| |
| virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; |
| |
| virtual viz::FrameSinkId GetFrameSinkId() = 0; |
| |
| virtual void WasEvicted() = 0; |
| }; |
| |
| } // namespace blink |
| |
| #endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REMOTE_FRAME_CLIENT_H_ |