summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/exported/web_view_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/exported/web_view_impl.h')
-rw-r--r--chromium/third_party/blink/renderer/core/exported/web_view_impl.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/chromium/third_party/blink/renderer/core/exported/web_view_impl.h b/chromium/third_party/blink/renderer/core/exported/web_view_impl.h
index 2e7c76cac3b..720ea6fcfb7 100644
--- a/chromium/third_party/blink/renderer/core/exported/web_view_impl.h
+++ b/chromium/third_party/blink/renderer/core/exported/web_view_impl.h
@@ -93,6 +93,8 @@ class WebSettingsImpl;
class WebViewClient;
class WebWidgetClient;
+struct WebTextAutosizerPageInfo;
+
using PaintHoldingCommitTrigger = cc::PaintHoldingCommitTrigger;
class CORE_EXPORT WebViewImpl final : public WebView,
@@ -160,6 +162,7 @@ class CORE_EXPORT WebViewImpl final : public WebView,
void SetVisualViewportOffset(const WebFloatPoint&) override;
WebFloatPoint VisualViewportOffset() const override;
WebFloatSize VisualViewportSize() const override;
+ void ResizeVisualViewport(const WebSize&) override;
void ResetScrollAndScaleState() override;
void SetIgnoreViewportTagScaleLimits(bool) override;
WebSize ContentsPreferredMinimumSize() override;
@@ -199,6 +202,7 @@ class CORE_EXPORT WebViewImpl final : public WebView,
void ClearBaseBackgroundColorOverride() override;
void SetInsidePortal(bool inside_portal) override;
void PaintContent(cc::PaintCanvas*, const gfx::Rect&) override;
+ void SetTextAutosizePageInfo(const WebTextAutosizerPageInfo&) override;
void DidUpdateFullscreenSize();
@@ -212,7 +216,6 @@ class CORE_EXPORT WebViewImpl final : public WebView,
void SetZoomFactorOverride(float);
void SetCompositorDeviceScaleFactorOverride(float);
- void SetDeviceEmulationTransform(const TransformationMatrix&);
TransformationMatrix GetDeviceEmulationTransform() const;
SkColor BackgroundColor() const;
@@ -395,20 +398,17 @@ class CORE_EXPORT WebViewImpl final : public WebView,
const IntRect& caret_bounds_in_document,
bool zoom_into_legible_scale);
- void StopDeferringMainFrameUpdate() {
- scoped_defer_main_frame_update_.reset();
- }
+ // Allows main frame updates to occur if they were previously blocked. They
+ // are blocked during loading a navigation, to allow Blink to proceed without
+ // being interrupted by useless work until enough progress is made that it
+ // desires composited output to be generated.
+ void StopDeferringMainFrameUpdate();
// This function checks the element ids of ScrollableAreas only and returns
// the equivalent DOM Node if such exists.
Node* FindNodeFromScrollableCompositorElementId(
cc::ElementId element_id) const;
- void DeferMainFrameUpdateForTesting();
-
- void StartDeferringCommits(base::TimeDelta timeout);
- void StopDeferringCommits(PaintHoldingCommitTrigger);
-
private:
FRIEND_TEST_ALL_PREFIXES(WebFrameTest, DivScrollIntoEditableTest);
FRIEND_TEST_ALL_PREFIXES(WebFrameTest,
@@ -426,12 +426,15 @@ class CORE_EXPORT WebViewImpl final : public WebView,
WidgetData& AsWidget() { return as_widget_; }
const WidgetData& AsWidget() const { return as_widget_; }
+ // Called while the main LocalFrame is being detached. The MainFrameImpl() and
+ // WebWidgetClient are still valid until after this method is called.
+ void DidDetachLocalMainFrame();
+
// WebWidget methods:
void SetLayerTreeView(WebLayerTreeView*, cc::AnimationHost*) override;
void Close() override;
WebSize Size() override;
void Resize(const WebSize&) override;
- void ResizeVisualViewport(const WebSize&) override;
void DidEnterFullscreen() override;
void DidExitFullscreen() override;
void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) override;
@@ -454,8 +457,7 @@ class CORE_EXPORT WebViewImpl final : public WebView,
void SetCursorVisibilityState(bool is_visible) override;
void OnFallbackCursorModeToggled(bool is_on) override;
void ApplyViewportChanges(const ApplyViewportChangesArgs& args) override;
- void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
- bool has_scrolled_by_touch) override;
+ void RecordManipulationTypeCounts(cc::ManipulationInfo info) override;
void SendOverscrollEventFromImplSide(
const gfx::Vector2dF& overscroll_delta,
cc::ElementId scroll_latched_element_id) override;
@@ -499,13 +501,15 @@ class CORE_EXPORT WebViewImpl final : public WebView,
WebViewImpl* opener);
~WebViewImpl() override;
- HitTestResult HitTestResultForRootFramePos(const LayoutPoint&);
+ HitTestResult HitTestResultForRootFramePos(const PhysicalOffset&);
void ConfigureAutoResizeMode();
void SetIsAcceleratedCompositingActive(bool);
void DoComposite();
void ReallocateRenderer();
+
+ void SetDeviceEmulationTransform(const TransformationMatrix&);
void UpdateDeviceEmulationTransform();
// Helper function: Widens the width of |source| by the specified margins