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

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

Issue 879163002: Hook up window.scrollTo and friends. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sa
Patch Set: rebase Created 5 years, 10 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
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 157
158 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 158 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
159 void setVisibleContentScaleFactor(float); 159 void setVisibleContentScaleFactor(float);
160 160
161 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed. 161 // Scale used to convert incoming input events. Usually the same as visibleC ontentScaleFactor(), unless specifically changed.
162 float inputEventsScaleFactor() const; 162 float inputEventsScaleFactor() const;
163 // Offset used to convert incoming input events while emulating device metic s. 163 // Offset used to convert incoming input events while emulating device metic s.
164 IntSize inputEventsOffsetForEmulation() const; 164 IntSize inputEventsOffsetForEmulation() const;
165 void setInputEventsTransformForEmulation(const IntSize&, float); 165 void setInputEventsTransformForEmulation(const IntSize&, float);
166 166
167 void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBehaviorIn stant); 167 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe haviorInstant) override;
168 virtual bool isRubberBandInProgress() const override; 168 virtual bool isRubberBandInProgress() const override;
169 virtual bool rubberBandingOnCompositorThread() const override; 169 virtual bool rubberBandingOnCompositorThread() const override;
170 void setScrollPositionNonProgrammatically(const IntPoint&); 170 void setScrollPositionNonProgrammatically(const IntPoint&);
171 171
172 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 172 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
173 void setElasticOverscroll(const FloatSize&); 173 void setElasticOverscroll(const FloatSize&);
174 174
175 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 175 // This is different than visibleContentRect() in that it ignores negative ( or overly positive)
176 // offsets from rubber-banding, and it takes zooming into account. 176 // offsets from rubber-banding, and it takes zooming into account.
177 LayoutRect viewportConstrainedVisibleContentRect() const; 177 LayoutRect viewportConstrainedVisibleContentRect() const;
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 873 }
874 874
875 private: 875 private:
876 RawPtrWillBeMember<FrameView> m_view; 876 RawPtrWillBeMember<FrameView> m_view;
877 bool m_originalValue; 877 bool m_originalValue;
878 }; 878 };
879 879
880 } // namespace blink 880 } // namespace blink
881 881
882 #endif // FrameView_h 882 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698