Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/core/frame/FrameView.h

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class LocalFrame; 55 class LocalFrame;
56 class KURL; 56 class KURL;
57 class Node; 57 class Node;
58 class Page; 58 class Page;
59 class LayoutBox; 59 class LayoutBox;
60 class LayoutEmbeddedObject; 60 class LayoutEmbeddedObject;
61 class LayoutObject; 61 class LayoutObject;
62 class LayoutScrollbarPart; 62 class LayoutScrollbarPart;
63 class LayoutView; 63 class LayoutView;
64 class ScrollingCoordinator; 64 class ScrollingCoordinator;
65 struct CompositedSelectionBound; 65 struct CompositedSelection;
66 66
67 typedef unsigned long long DOMTimeStamp; 67 typedef unsigned long long DOMTimeStamp;
68 68
69 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { 69 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea {
70 public: 70 public:
71 friend class LayoutView; 71 friend class LayoutView;
72 friend class Internals; 72 friend class Internals;
73 73
74 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); 74 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*);
75 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize); 75 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize);
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 void scheduleUpdateWidgetsIfNecessary(); 664 void scheduleUpdateWidgetsIfNecessary();
665 void updateWidgetsTimerFired(Timer<FrameView>*); 665 void updateWidgetsTimerFired(Timer<FrameView>*);
666 bool updateWidgets(); 666 bool updateWidgets();
667 667
668 void scrollToAnchor(); 668 void scrollToAnchor();
669 void scrollPositionChanged(); 669 void scrollPositionChanged();
670 void didScrollTimerFired(Timer<FrameView>*); 670 void didScrollTimerFired(Timer<FrameView>*);
671 671
672 void updateLayersAndCompositingAfterScrollIfNeeded(); 672 void updateLayersAndCompositingAfterScrollIfNeeded();
673 673
674 static bool computeCompositedSelectionBounds(LocalFrame&, CompositedSelectio nBound& start, CompositedSelectionBound& end); 674 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&);
675 void updateCompositedSelectionBoundsIfNeeded(); 675 void updateCompositedSelectionIfNeeded();
676 676
677 // Returns true if the FrameView's own scrollbars overlay its content when v isible. 677 // Returns true if the FrameView's own scrollbars overlay its content when v isible.
678 bool hasOverlayScrollbars() const; 678 bool hasOverlayScrollbars() const;
679 679
680 // Returns true if the frame should use custom scrollbars. If true, one of 680 // Returns true if the frame should use custom scrollbars. If true, one of
681 // either |customScrollbarElement| or |customScrollbarFrame| will be set to 681 // either |customScrollbarElement| or |customScrollbarFrame| will be set to
682 // the element or frame which owns the scrollbar with the other set to null. 682 // the element or frame which owns the scrollbar with the other set to null.
683 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame* & customScrollbarFrame) const; 683 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame* & customScrollbarFrame) const;
684 684
685 // Returns true if a scrollbar needs to go from native -> custom or vice ver sa. 685 // Returns true if a scrollbar needs to go from native -> custom or vice ver sa.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 static const unsigned visualPixelThreshold = 32 * 32; 862 static const unsigned visualPixelThreshold = 32 * 32;
863 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 863 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
864 setIsVisuallyNonEmpty(); 864 setIsVisuallyNonEmpty();
865 } 865 }
866 866
867 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 867 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
868 868
869 } // namespace blink 869 } // namespace blink
870 870
871 #endif // FrameView_h 871 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698