Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index 35222886026fc369950cb80bd8709ded6093ab0a..c4fb4d0079f0b4b5ff1b7d652b4cbee1a1c26ba0 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -191,6 +191,7 @@ public:
void setInputEventsTransformForEmulation(const IntSize&, float);
void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavior = ScrollBehaviorInstant) override;
+ void didChangeScrollOffset();
void didUpdateElasticOverscroll();
@@ -445,6 +446,11 @@ public:
IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) const override;
IntSize visibleContentSize(IncludeScrollbarsInRect = ExcludeScrollbars) const;
+ // Clips the provided rect to the visible content area. For this purpose, we
+ // also query the chrome client for any active overrides to the visible area
+ // (e.g. DevTool's viewport override).
+ void clipPaintRect(FloatRect*) const;
+
// Functions for getting/setting the size of the document contained inside the FrameView (as an IntSize or as individual width and height
// values).
IntSize contentsSize() const override; // Always at least as big as the visibleWidth()/visibleHeight().

Powered by Google App Engine
This is Rietveld 408576698