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

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

Issue 977663002: Mac: Delete now-dead elastic overscroll code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/config.h ('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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 157 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
158 void setVisibleContentScaleFactor(float); 158 void setVisibleContentScaleFactor(float);
159 159
160 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed. 160 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed.
161 float inputEventsScaleFactor() const; 161 float inputEventsScaleFactor() const;
162 // Offset used to convert incoming input events while emulating device metic s. 162 // Offset used to convert incoming input events while emulating device metic s.
163 IntSize inputEventsOffsetForEmulation() const; 163 IntSize inputEventsOffsetForEmulation() const;
164 void setInputEventsTransformForEmulation(const IntSize&, float); 164 void setInputEventsTransformForEmulation(const IntSize&, float);
165 165
166 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override; 166 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override;
167 virtual bool isRubberBandInProgress() const override;
168 virtual bool rubberBandingOnCompositorThread() const override;
169 void setScrollPositionNonProgrammatically(const IntPoint&); 167 void setScrollPositionNonProgrammatically(const IntPoint&);
170 168
171 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 169 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
172 void setElasticOverscroll(const FloatSize&); 170 void setElasticOverscroll(const FloatSize&);
173 171
174 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 172 // This is different than visibleContentRect() in that it takes zooming into account.
175 // offsets from rubber-banding, and it takes zooming into account.
176 LayoutRect viewportConstrainedVisibleContentRect() const; 173 LayoutRect viewportConstrainedVisibleContentRect() const;
177 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged); 174 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged);
178 175
179 AtomicString mediaType() const; 176 AtomicString mediaType() const;
180 void setMediaType(const AtomicString&); 177 void setMediaType(const AtomicString&);
181 void adjustMediaTypeForPrinting(bool printing); 178 void adjustMediaTypeForPrinting(bool printing);
182 179
183 WebDisplayMode displayMode() { return m_displayMode; } 180 WebDisplayMode displayMode() { return m_displayMode; }
184 void setDisplayMode(WebDisplayMode); 181 void setDisplayMode(WebDisplayMode);
185 182
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 static const unsigned visualPixelThreshold = 32 * 32; 859 static const unsigned visualPixelThreshold = 32 * 32;
863 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 860 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
864 setIsVisuallyNonEmpty(); 861 setIsVisuallyNonEmpty();
865 } 862 }
866 863
867 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 864 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
868 865
869 } // namespace blink 866 } // namespace blink
870 867
871 #endif // FrameView_h 868 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/config.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698