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

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

Issue 2901203002: Rename VisualViewport properties to match updated spec (Closed)
Patch Set: Make methods const Created 3 years, 7 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/VisualViewport.h
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.h b/third_party/WebKit/Source/core/frame/VisualViewport.h
index bf82d7db164455a33336e6af1241d8f4f45ec3e6..ad22efd2bca601c5148df657ee65fb406697347c 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.h
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.h
@@ -217,11 +217,11 @@ class CORE_EXPORT VisualViewport final
RefPtr<WebTaskRunner> GetTimerTaskRunner() const final;
// Visual Viewport API implementation.
- double ScrollLeft();
- double ScrollTop();
- double ClientWidth();
- double ClientHeight();
- double PageScale();
+ double OffsetLeft() const;
+ double OffsetTop() const;
+ double Width() const;
+ double Height() const;
+ double ScaleForVisualViewport() const;
// Used for gathering data on user pinch-zoom statistics.
void UserDidChangeScale();
@@ -239,7 +239,7 @@ class CORE_EXPORT VisualViewport final
bool VisualViewportSuppliesScrollbars() const;
- void UpdateStyleAndLayoutIgnorePendingStylesheets();
+ void UpdateStyleAndLayoutIgnorePendingStylesheets() const;
void EnqueueScrollEvent();
void EnqueueResizeEvent();
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698