| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 // True if the FrameView is not transparent, and the base background color i
s opaque. | 161 // True if the FrameView is not transparent, and the base background color i
s opaque. |
| 162 bool hasOpaqueBackground() const; | 162 bool hasOpaqueBackground() const; |
| 163 | 163 |
| 164 Color baseBackgroundColor() const; | 164 Color baseBackgroundColor() const; |
| 165 void setBaseBackgroundColor(const Color&); | 165 void setBaseBackgroundColor(const Color&); |
| 166 void updateBackgroundRecursively(const Color&, bool); | 166 void updateBackgroundRecursively(const Color&, bool); |
| 167 | 167 |
| 168 void adjustViewSize(); | 168 void adjustViewSize(); |
| 169 | 169 |
| 170 // |unobscuredRect| receives the clip rect that is not clipped to the root w
indow. It may be nullptr. | |
| 171 IntRect clipRectsForFrameOwner(const HTMLFrameOwnerElement*, IntRect* unobsc
uredRect) const; | |
| 172 | |
| 173 // Scale used to convert incoming input events. | 170 // Scale used to convert incoming input events. |
| 174 float inputEventsScaleFactor() const; | 171 float inputEventsScaleFactor() const; |
| 175 | 172 |
| 176 // Offset used to convert incoming input events while emulating device metic
s. | 173 // Offset used to convert incoming input events while emulating device metic
s. |
| 177 IntSize inputEventsOffsetForEmulation() const; | 174 IntSize inputEventsOffsetForEmulation() const; |
| 178 void setInputEventsTransformForEmulation(const IntSize&, float); | 175 void setInputEventsTransformForEmulation(const IntSize&, float); |
| 179 | 176 |
| 180 void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavior = Scro
llBehaviorInstant) override; | 177 void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavior = Scro
llBehaviorInstant) override; |
| 181 | 178 |
| 182 void didUpdateElasticOverscroll(); | 179 void didUpdateElasticOverscroll(); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 bool scrollAnimatorEnabled() const override; | 357 bool scrollAnimatorEnabled() const override; |
| 361 bool usesCompositedScrolling() const override; | 358 bool usesCompositedScrolling() const override; |
| 362 GraphicsLayer* layerForScrolling() const override; | 359 GraphicsLayer* layerForScrolling() const override; |
| 363 GraphicsLayer* layerForHorizontalScrollbar() const override; | 360 GraphicsLayer* layerForHorizontalScrollbar() const override; |
| 364 GraphicsLayer* layerForVerticalScrollbar() const override; | 361 GraphicsLayer* layerForVerticalScrollbar() const override; |
| 365 GraphicsLayer* layerForScrollCorner() const override; | 362 GraphicsLayer* layerForScrollCorner() const override; |
| 366 int scrollSize(ScrollbarOrientation) const override; | 363 int scrollSize(ScrollbarOrientation) const override; |
| 367 bool isScrollCornerVisible() const override; | 364 bool isScrollCornerVisible() const override; |
| 368 bool userInputScrollable(ScrollbarOrientation) const override; | 365 bool userInputScrollable(ScrollbarOrientation) const override; |
| 369 bool shouldPlaceVerticalScrollbarOnLeft() const override; | 366 bool shouldPlaceVerticalScrollbarOnLeft() const override; |
| 367 |
| 370 LayoutRect scrollIntoView( | 368 LayoutRect scrollIntoView( |
| 371 const LayoutRect& rectInContent, | 369 const LayoutRect& rectInContent, |
| 372 const ScrollAlignment& alignX, | 370 const ScrollAlignment& alignX, |
| 373 const ScrollAlignment& alignY, | 371 const ScrollAlignment& alignY, |
| 374 ScrollType = ProgrammaticScroll) override; | 372 ScrollType = ProgrammaticScroll) override; |
| 375 | 373 |
| 376 // The window that hosts the FrameView. The FrameView will communicate scrol
ls and repaints to the | 374 // The window that hosts the FrameView. The FrameView will communicate scrol
ls and repaints to the |
| 377 // host window in the window's coordinate space. | 375 // host window in the window's coordinate space. |
| 378 HostWindow* hostWindow() const override; | 376 HostWindow* hostWindow() const override; |
| 379 | 377 |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 static const unsigned visualPixelThreshold = 32 * 32; | 904 static const unsigned visualPixelThreshold = 32 * 32; |
| 907 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 905 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 908 setIsVisuallyNonEmpty(); | 906 setIsVisuallyNonEmpty(); |
| 909 } | 907 } |
| 910 | 908 |
| 911 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 909 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 912 | 910 |
| 913 } // namespace blink | 911 } // namespace blink |
| 914 | 912 |
| 915 #endif // FrameView_h | 913 #endif // FrameView_h |
| OLD | NEW |