| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/paint/PaintPhase.h" | 39 #include "core/paint/PaintPhase.h" |
| 40 #include "core/paint/ScrollbarManager.h" | 40 #include "core/paint/ScrollbarManager.h" |
| 41 #include "platform/RuntimeEnabledFeatures.h" | 41 #include "platform/RuntimeEnabledFeatures.h" |
| 42 #include "platform/Widget.h" | 42 #include "platform/Widget.h" |
| 43 #include "platform/animation/CompositorAnimationHost.h" | 43 #include "platform/animation/CompositorAnimationHost.h" |
| 44 #include "platform/animation/CompositorAnimationTimeline.h" | 44 #include "platform/animation/CompositorAnimationTimeline.h" |
| 45 #include "platform/geometry/IntRect.h" | 45 #include "platform/geometry/IntRect.h" |
| 46 #include "platform/geometry/LayoutRect.h" | 46 #include "platform/geometry/LayoutRect.h" |
| 47 #include "platform/graphics/Color.h" | 47 #include "platform/graphics/Color.h" |
| 48 #include "platform/graphics/GraphicsLayerClient.h" | 48 #include "platform/graphics/GraphicsLayerClient.h" |
| 49 #include "platform/scroll/ProgrammaticScrollCoordinator.h" |
| 49 #include "platform/scroll/ScrollTypes.h" | 50 #include "platform/scroll/ScrollTypes.h" |
| 50 #include "platform/scroll/Scrollbar.h" | 51 #include "platform/scroll/Scrollbar.h" |
| 51 #include "public/platform/ShapeProperties.h" | 52 #include "public/platform/ShapeProperties.h" |
| 52 #include "public/platform/WebDisplayMode.h" | 53 #include "public/platform/WebDisplayMode.h" |
| 53 #include "public/platform/WebRect.h" | 54 #include "public/platform/WebRect.h" |
| 54 #include "wtf/Allocator.h" | 55 #include "wtf/Allocator.h" |
| 55 #include "wtf/AutoReset.h" | 56 #include "wtf/AutoReset.h" |
| 56 #include "wtf/Forward.h" | 57 #include "wtf/Forward.h" |
| 57 #include "wtf/HashSet.h" | 58 #include "wtf/HashSet.h" |
| 58 #include "wtf/ListHashSet.h" | 59 #include "wtf/ListHashSet.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 CompositorAnimationTimeline* compositorAnimationTimeline() const override; | 446 CompositorAnimationTimeline* compositorAnimationTimeline() const override; |
| 446 LayoutBox* layoutBox() const override; | 447 LayoutBox* layoutBox() const override; |
| 447 FloatQuad localToVisibleContentQuad(const FloatQuad&, | 448 FloatQuad localToVisibleContentQuad(const FloatQuad&, |
| 448 const LayoutObject*, | 449 const LayoutObject*, |
| 449 unsigned = 0) const final; | 450 unsigned = 0) const final; |
| 450 RefPtr<WebTaskRunner> getTimerTaskRunner() const final; | 451 RefPtr<WebTaskRunner> getTimerTaskRunner() const final; |
| 451 | 452 |
| 452 LayoutRect scrollIntoView(const LayoutRect& rectInContent, | 453 LayoutRect scrollIntoView(const LayoutRect& rectInContent, |
| 453 const ScrollAlignment& alignX, | 454 const ScrollAlignment& alignX, |
| 454 const ScrollAlignment& alignY, | 455 const ScrollAlignment& alignY, |
| 455 ScrollType = ProgrammaticScroll) override; | 456 ScrollType = ProgrammaticScroll, |
| 457 ScrollBehavior = ScrollBehaviorAuto) override; |
| 456 | 458 |
| 457 // The window that hosts the FrameView. The FrameView will communicate scrolls | 459 // The window that hosts the FrameView. The FrameView will communicate scrolls |
| 458 // and repaints to the host window in the window's coordinate space. | 460 // and repaints to the host window in the window's coordinate space. |
| 459 HostWindow* getHostWindow() const; | 461 HostWindow* getHostWindow() const; |
| 460 | 462 |
| 463 ProgrammaticScrollCoordinator* getProgrammaticScrollCoordinator() |
| 464 const override; |
| 465 |
| 461 typedef HeapHashSet<Member<Widget>> ChildrenWidgetSet; | 466 typedef HeapHashSet<Member<Widget>> ChildrenWidgetSet; |
| 462 | 467 |
| 463 // Functions for child manipulation and inspection. | 468 // Functions for child manipulation and inspection. |
| 464 void setParent(Widget*) override; | 469 void setParent(Widget*) override; |
| 465 void removeChild(Widget*); | 470 void removeChild(Widget*); |
| 466 void addChild(Widget*); | 471 void addChild(Widget*); |
| 467 const ChildrenWidgetSet* children() const { return &m_children; } | 472 const ChildrenWidgetSet* children() const { return &m_children; } |
| 468 | 473 |
| 469 // If the scroll view does not use a native widget, then it will have | 474 // If the scroll view does not use a native widget, then it will have |
| 470 // cross-platform Scrollbars. These functions can be used to obtain those | 475 // cross-platform Scrollbars. These functions can be used to obtain those |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 widget.isFrameView()); | 1246 widget.isFrameView()); |
| 1242 DEFINE_TYPE_CASTS(FrameView, | 1247 DEFINE_TYPE_CASTS(FrameView, |
| 1243 ScrollableArea, | 1248 ScrollableArea, |
| 1244 scrollableArea, | 1249 scrollableArea, |
| 1245 scrollableArea->isFrameView(), | 1250 scrollableArea->isFrameView(), |
| 1246 scrollableArea.isFrameView()); | 1251 scrollableArea.isFrameView()); |
| 1247 | 1252 |
| 1248 } // namespace blink | 1253 } // namespace blink |
| 1249 | 1254 |
| 1250 #endif // FrameView_h | 1255 #endif // FrameView_h |
| OLD | NEW |