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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "platform/RuntimeEnabledFeatures.h" | 44 #include "platform/RuntimeEnabledFeatures.h" |
45 #include "platform/animation/CompositorAnimationHost.h" | 45 #include "platform/animation/CompositorAnimationHost.h" |
46 #include "platform/animation/CompositorAnimationTimeline.h" | 46 #include "platform/animation/CompositorAnimationTimeline.h" |
47 #include "platform/geometry/IntRect.h" | 47 #include "platform/geometry/IntRect.h" |
48 #include "platform/geometry/LayoutRect.h" | 48 #include "platform/geometry/LayoutRect.h" |
49 #include "platform/graphics/Color.h" | 49 #include "platform/graphics/Color.h" |
50 #include "platform/graphics/CompositorElementId.h" | 50 #include "platform/graphics/CompositorElementId.h" |
51 #include "platform/graphics/GraphicsLayerClient.h" | 51 #include "platform/graphics/GraphicsLayerClient.h" |
52 #include "platform/scroll/ScrollTypes.h" | 52 #include "platform/scroll/ScrollTypes.h" |
53 #include "platform/scroll/Scrollbar.h" | 53 #include "platform/scroll/Scrollbar.h" |
| 54 #include "platform/scroll/SmoothScrollSequencer.h" |
54 #include "platform/wtf/Allocator.h" | 55 #include "platform/wtf/Allocator.h" |
55 #include "platform/wtf/AutoReset.h" | 56 #include "platform/wtf/AutoReset.h" |
56 #include "platform/wtf/Forward.h" | 57 #include "platform/wtf/Forward.h" |
57 #include "platform/wtf/HashSet.h" | 58 #include "platform/wtf/HashSet.h" |
58 #include "platform/wtf/ListHashSet.h" | 59 #include "platform/wtf/ListHashSet.h" |
59 #include "platform/wtf/text/WTFString.h" | 60 #include "platform/wtf/text/WTFString.h" |
60 #include "public/platform/ShapeProperties.h" | 61 #include "public/platform/ShapeProperties.h" |
61 #include "public/platform/WebDisplayMode.h" | 62 #include "public/platform/WebDisplayMode.h" |
62 #include "public/platform/WebRect.h" | 63 #include "public/platform/WebRect.h" |
63 | 64 |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; | 462 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; |
462 LayoutBox* GetLayoutBox() const override; | 463 LayoutBox* GetLayoutBox() const override; |
463 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, | 464 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, |
464 const LayoutObject*, | 465 const LayoutObject*, |
465 unsigned = 0) const final; | 466 unsigned = 0) const final; |
466 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; | 467 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; |
467 | 468 |
468 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, | 469 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, |
469 const ScrollAlignment& align_x, | 470 const ScrollAlignment& align_x, |
470 const ScrollAlignment& align_y, | 471 const ScrollAlignment& align_y, |
| 472 bool is_smooth, |
471 ScrollType = kProgrammaticScroll) override; | 473 ScrollType = kProgrammaticScroll) override; |
472 | 474 |
473 // The window that hosts the LocalFrameView. The LocalFrameView will | 475 // The window that hosts the LocalFrameView. The LocalFrameView will |
474 // communicate scrolls and repaints to the host window in the window's | 476 // communicate scrolls and repaints to the host window in the window's |
475 // coordinate space. | 477 // coordinate space. |
476 PlatformChromeClient* GetChromeClient() const; | 478 PlatformChromeClient* GetChromeClient() const; |
477 | 479 |
| 480 SmoothScrollSequencer* GetSmoothScrollSequencer() const override; |
| 481 |
478 // Functions for child manipulation and inspection. | 482 // Functions for child manipulation and inspection. |
479 bool IsSelfVisible() const { | 483 bool IsSelfVisible() const { |
480 return self_visible_; | 484 return self_visible_; |
481 } // Whether or not we have been explicitly marked as visible or not. | 485 } // Whether or not we have been explicitly marked as visible or not. |
482 bool IsParentVisible() const { | 486 bool IsParentVisible() const { |
483 return parent_visible_; | 487 return parent_visible_; |
484 } // Whether or not our parent is visible. | 488 } // Whether or not our parent is visible. |
485 bool IsVisible() const { | 489 bool IsVisible() const { |
486 return self_visible_ && parent_visible_; | 490 return self_visible_ && parent_visible_; |
487 } // Whether or not we are actually visible. | 491 } // Whether or not we are actually visible. |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 frame_or_plugin.IsLocalFrameView()); | 1272 frame_or_plugin.IsLocalFrameView()); |
1269 DEFINE_TYPE_CASTS(LocalFrameView, | 1273 DEFINE_TYPE_CASTS(LocalFrameView, |
1270 ScrollableArea, | 1274 ScrollableArea, |
1271 scrollableArea, | 1275 scrollableArea, |
1272 scrollableArea->IsLocalFrameView(), | 1276 scrollableArea->IsLocalFrameView(), |
1273 scrollableArea.IsLocalFrameView()); | 1277 scrollableArea.IsLocalFrameView()); |
1274 | 1278 |
1275 } // namespace blink | 1279 } // namespace blink |
1276 | 1280 |
1277 #endif // LocalFrameView_h | 1281 #endif // LocalFrameView_h |
OLD | NEW |