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

Side by Side Diff: Source/core/frame/FrameView.h

Issue 610423004: Preserve fractional scroll offset for JS scrolling API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 virtual IntRect windowResizerRect() const override; 151 virtual IntRect windowResizerRect() const override;
152 152
153 virtual float visibleContentScaleFactor() const override { return m_visibleC ontentScaleFactor; } 153 virtual float visibleContentScaleFactor() const override { return m_visibleC ontentScaleFactor; }
154 void setVisibleContentScaleFactor(float); 154 void setVisibleContentScaleFactor(float);
155 155
156 virtual float inputEventsScaleFactor() const override; 156 virtual float inputEventsScaleFactor() const override;
157 virtual IntSize inputEventsOffsetForEmulation() const override; 157 virtual IntSize inputEventsOffsetForEmulation() const override;
158 void setInputEventsTransformForEmulation(const IntSize&, float); 158 void setInputEventsTransformForEmulation(const IntSize&, float);
159 159
160 virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehav iorInstant) override; 160 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override;
161 virtual bool isRubberBandInProgress() const override; 161 virtual bool isRubberBandInProgress() const override;
162 void setScrollPositionNonProgrammatically(const IntPoint&); 162 void setScrollPositionNonProgrammatically(const IntPoint&);
163 163
164 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 164 // This is different than visibleContentRect() in that it ignores negative ( or overly positive)
165 // offsets from rubber-banding, and it takes zooming into account. 165 // offsets from rubber-banding, and it takes zooming into account.
166 LayoutRect viewportConstrainedVisibleContentRect() const; 166 LayoutRect viewportConstrainedVisibleContentRect() const;
167 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged); 167 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged);
168 168
169 AtomicString mediaType() const; 169 AtomicString mediaType() const;
170 void setMediaType(const AtomicString&); 170 void setMediaType(const AtomicString&);
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 561 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
562 } 562 }
563 private: 563 private:
564 FrameView* m_view; 564 FrameView* m_view;
565 bool m_originalValue; 565 bool m_originalValue;
566 }; 566 };
567 567
568 } // namespace blink 568 } // namespace blink
569 569
570 #endif // FrameView_h 570 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698