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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 bool hasOpaqueBackground() const; | 149 bool hasOpaqueBackground() const; |
150 | 150 |
151 Color baseBackgroundColor() const; | 151 Color baseBackgroundColor() const; |
152 void setBaseBackgroundColor(const Color&); | 152 void setBaseBackgroundColor(const Color&); |
153 void updateBackgroundRecursively(const Color&, bool); | 153 void updateBackgroundRecursively(const Color&, bool); |
154 | 154 |
155 void adjustViewSize(); | 155 void adjustViewSize(); |
156 | 156 |
157 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const; | 157 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const; |
158 | 158 |
| 159 // Returns the clip rect for the element without clipping to the root view. |
| 160 // Used to determine the visible portion of elements below the fold. |
| 161 IntRect unobscuredRectForFrameOwner(const HTMLFrameOwnerElement*) const; |
| 162 |
159 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor
; } | 163 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor
; } |
160 void setVisibleContentScaleFactor(float); | 164 void setVisibleContentScaleFactor(float); |
161 | 165 |
162 // Scale used to convert incoming input events. Usually the same as visibleC
ontentScaleFactor(), unless specifically changed. | 166 // Scale used to convert incoming input events. Usually the same as visibleC
ontentScaleFactor(), unless specifically changed. |
163 float inputEventsScaleFactor() const; | 167 float inputEventsScaleFactor() const; |
164 // Offset used to convert incoming input events while emulating device metic
s. | 168 // Offset used to convert incoming input events while emulating device metic
s. |
165 IntSize inputEventsOffsetForEmulation() const; | 169 IntSize inputEventsOffsetForEmulation() const; |
166 void setInputEventsTransformForEmulation(const IntSize&, float); | 170 void setInputEventsTransformForEmulation(const IntSize&, float); |
167 | 171 |
168 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe
haviorInstant) override; | 172 virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBe
haviorInstant) override; |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 static const unsigned visualPixelThreshold = 32 * 32; | 875 static const unsigned visualPixelThreshold = 32 * 32; |
872 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 876 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
873 setIsVisuallyNonEmpty(); | 877 setIsVisuallyNonEmpty(); |
874 } | 878 } |
875 | 879 |
876 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 880 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
877 | 881 |
878 } // namespace blink | 882 } // namespace blink |
879 | 883 |
880 #endif // FrameView_h | 884 #endif // FrameView_h |
OLD | NEW |