| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |