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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; | 464 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; |
464 LayoutBox* GetLayoutBox() const override; | 465 LayoutBox* GetLayoutBox() const override; |
465 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, | 466 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, |
466 const LayoutObject*, | 467 const LayoutObject*, |
467 unsigned = 0) const final; | 468 unsigned = 0) const final; |
468 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; | 469 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; |
469 | 470 |
470 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, | 471 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, |
471 const ScrollAlignment& align_x, | 472 const ScrollAlignment& align_x, |
472 const ScrollAlignment& align_y, | 473 const ScrollAlignment& align_y, |
| 474 bool is_smooth, |
473 ScrollType = kProgrammaticScroll) override; | 475 ScrollType = kProgrammaticScroll) override; |
474 | 476 |
475 // The window that hosts the LocalFrameView. The LocalFrameView will | 477 // The window that hosts the LocalFrameView. The LocalFrameView will |
476 // communicate scrolls and repaints to the host window in the window's | 478 // communicate scrolls and repaints to the host window in the window's |
477 // coordinate space. | 479 // coordinate space. |
478 PlatformChromeClient* GetChromeClient() const; | 480 PlatformChromeClient* GetChromeClient() const; |
479 | 481 |
| 482 SmoothScrollSequencer* GetSmoothScrollSequencer() const override; |
| 483 |
480 // Functions for child manipulation and inspection. | 484 // Functions for child manipulation and inspection. |
481 bool IsSelfVisible() const { | 485 bool IsSelfVisible() const { |
482 return self_visible_; | 486 return self_visible_; |
483 } // Whether or not we have been explicitly marked as visible or not. | 487 } // Whether or not we have been explicitly marked as visible or not. |
484 bool IsParentVisible() const { | 488 bool IsParentVisible() const { |
485 return parent_visible_; | 489 return parent_visible_; |
486 } // Whether or not our parent is visible. | 490 } // Whether or not our parent is visible. |
487 bool IsVisible() const { | 491 bool IsVisible() const { |
488 return self_visible_ && parent_visible_; | 492 return self_visible_ && parent_visible_; |
489 } // Whether or not we are actually visible. | 493 } // Whether or not we are actually visible. |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 frame_or_plugin.IsFrameView()); | 1274 frame_or_plugin.IsFrameView()); |
1271 DEFINE_TYPE_CASTS(LocalFrameView, | 1275 DEFINE_TYPE_CASTS(LocalFrameView, |
1272 ScrollableArea, | 1276 ScrollableArea, |
1273 scrollableArea, | 1277 scrollableArea, |
1274 scrollableArea->IsFrameView(), | 1278 scrollableArea->IsFrameView(), |
1275 scrollableArea.IsFrameView()); | 1279 scrollableArea.IsFrameView()); |
1276 | 1280 |
1277 } // namespace blink | 1281 } // namespace blink |
1278 | 1282 |
1279 #endif // LocalFrameView_h | 1283 #endif // LocalFrameView_h |
OLD | NEW |