| 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 | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/frame/FrameViewAutoSizeInfo.h" | 32 #include "core/frame/FrameViewAutoSizeInfo.h" |
| 33 #include "core/frame/LayoutSubtreeRootList.h" | 33 #include "core/frame/LayoutSubtreeRootList.h" |
| 34 #include "core/frame/RootFrameViewport.h" | 34 #include "core/frame/RootFrameViewport.h" |
| 35 #include "core/layout/MapCoordinatesFlags.h" | 35 #include "core/layout/MapCoordinatesFlags.h" |
| 36 #include "core/layout/ScrollAnchor.h" | 36 #include "core/layout/ScrollAnchor.h" |
| 37 #include "core/paint/FirstMeaningfulPaintDetector.h" | 37 #include "core/paint/FirstMeaningfulPaintDetector.h" |
| 38 #include "core/paint/ObjectPaintProperties.h" | 38 #include "core/paint/ObjectPaintProperties.h" |
| 39 #include "core/paint/PaintInvalidationCapableScrollableArea.h" | 39 #include "core/paint/PaintInvalidationCapableScrollableArea.h" |
| 40 #include "core/paint/PaintPhase.h" | 40 #include "core/paint/PaintPhase.h" |
| 41 #include "core/paint/ScrollbarManager.h" | 41 #include "core/paint/ScrollbarManager.h" |
| 42 #include "core/plugins/PluginView.h" |
| 42 #include "platform/FrameViewBase.h" | 43 #include "platform/FrameViewBase.h" |
| 43 #include "platform/RuntimeEnabledFeatures.h" | 44 #include "platform/RuntimeEnabledFeatures.h" |
| 44 #include "platform/animation/CompositorAnimationHost.h" | 45 #include "platform/animation/CompositorAnimationHost.h" |
| 45 #include "platform/animation/CompositorAnimationTimeline.h" | 46 #include "platform/animation/CompositorAnimationTimeline.h" |
| 46 #include "platform/geometry/IntRect.h" | 47 #include "platform/geometry/IntRect.h" |
| 47 #include "platform/geometry/LayoutRect.h" | 48 #include "platform/geometry/LayoutRect.h" |
| 48 #include "platform/graphics/Color.h" | 49 #include "platform/graphics/Color.h" |
| 49 #include "platform/graphics/GraphicsLayerClient.h" | 50 #include "platform/graphics/GraphicsLayerClient.h" |
| 50 #include "platform/scroll/ScrollTypes.h" | 51 #include "platform/scroll/ScrollTypes.h" |
| 51 #include "platform/scroll/Scrollbar.h" | 52 #include "platform/scroll/Scrollbar.h" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 LayoutRect scrollIntoView(const LayoutRect& rectInContent, | 448 LayoutRect scrollIntoView(const LayoutRect& rectInContent, |
| 448 const ScrollAlignment& alignX, | 449 const ScrollAlignment& alignX, |
| 449 const ScrollAlignment& alignY, | 450 const ScrollAlignment& alignY, |
| 450 ScrollType = ProgrammaticScroll) override; | 451 ScrollType = ProgrammaticScroll) override; |
| 451 | 452 |
| 452 // The window that hosts the FrameView. The FrameView will communicate scrolls | 453 // The window that hosts the FrameView. The FrameView will communicate scrolls |
| 453 // and repaints to the host window in the window's coordinate space. | 454 // and repaints to the host window in the window's coordinate space. |
| 454 HostWindow* getHostWindow() const; | 455 HostWindow* getHostWindow() const; |
| 455 | 456 |
| 456 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet; | 457 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet; |
| 458 typedef HeapHashSet<Member<PluginView>> PluginsSet; |
| 457 | 459 |
| 458 // Functions for child manipulation and inspection. | 460 // Functions for child manipulation and inspection. |
| 459 void setParent(FrameViewBase*) override; | 461 void setParent(FrameViewBase*) override; |
| 460 void removeChild(FrameViewBase*); | 462 void removeChild(FrameViewBase*); |
| 461 void addChild(FrameViewBase*); | 463 void addChild(FrameViewBase*); |
| 462 const ChildrenSet* children() const { return &m_children; } | 464 const ChildrenSet* children() const { return &m_children; } |
| 465 void removePlugin(PluginView*); |
| 466 void addPlugin(PluginView*); |
| 467 const PluginsSet* plugins() const { return &m_plugins; } |
| 463 | 468 |
| 464 // If the scroll view does not use a native widget, then it will have | 469 // If the scroll view does not use a native widget, then it will have |
| 465 // cross-platform Scrollbars. These functions can be used to obtain those | 470 // cross-platform Scrollbars. These functions can be used to obtain those |
| 466 // scrollbars. | 471 // scrollbars. |
| 467 Scrollbar* horizontalScrollbar() const override { | 472 Scrollbar* horizontalScrollbar() const override { |
| 468 return m_scrollbarManager.horizontalScrollbar(); | 473 return m_scrollbarManager.horizontalScrollbar(); |
| 469 } | 474 } |
| 470 Scrollbar* verticalScrollbar() const override { | 475 Scrollbar* verticalScrollbar() const override { |
| 471 return m_scrollbarManager.verticalScrollbar(); | 476 return m_scrollbarManager.verticalScrollbar(); |
| 472 } | 477 } |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 bool m_hasBeenDisposed = false; | 1126 bool m_hasBeenDisposed = false; |
| 1122 #endif | 1127 #endif |
| 1123 | 1128 |
| 1124 ScrollbarMode m_horizontalScrollbarMode; | 1129 ScrollbarMode m_horizontalScrollbarMode; |
| 1125 ScrollbarMode m_verticalScrollbarMode; | 1130 ScrollbarMode m_verticalScrollbarMode; |
| 1126 | 1131 |
| 1127 bool m_horizontalScrollbarLock; | 1132 bool m_horizontalScrollbarLock; |
| 1128 bool m_verticalScrollbarLock; | 1133 bool m_verticalScrollbarLock; |
| 1129 | 1134 |
| 1130 ChildrenSet m_children; | 1135 ChildrenSet m_children; |
| 1136 PluginsSet m_plugins; |
| 1131 | 1137 |
| 1132 ScrollOffset m_pendingScrollDelta; | 1138 ScrollOffset m_pendingScrollDelta; |
| 1133 ScrollOffset m_scrollOffset; | 1139 ScrollOffset m_scrollOffset; |
| 1134 IntSize m_contentsSize; | 1140 IntSize m_contentsSize; |
| 1135 | 1141 |
| 1136 bool m_scrollbarsSuppressed; | 1142 bool m_scrollbarsSuppressed; |
| 1137 | 1143 |
| 1138 bool m_inUpdateScrollbars; | 1144 bool m_inUpdateScrollbars; |
| 1139 | 1145 |
| 1140 std::unique_ptr<LayoutAnalyzer> m_analyzer; | 1146 std::unique_ptr<LayoutAnalyzer> m_analyzer; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 frameViewBase.isFrameView()); | 1261 frameViewBase.isFrameView()); |
| 1256 DEFINE_TYPE_CASTS(FrameView, | 1262 DEFINE_TYPE_CASTS(FrameView, |
| 1257 ScrollableArea, | 1263 ScrollableArea, |
| 1258 scrollableArea, | 1264 scrollableArea, |
| 1259 scrollableArea->isFrameView(), | 1265 scrollableArea->isFrameView(), |
| 1260 scrollableArea.isFrameView()); | 1266 scrollableArea.isFrameView()); |
| 1261 | 1267 |
| 1262 } // namespace blink | 1268 } // namespace blink |
| 1263 | 1269 |
| 1264 #endif // FrameView_h | 1270 #endif // FrameView_h |
| OLD | NEW |