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

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: TODO for moving WebSelectionBound Created 5 years, 8 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') | no next file with comments »
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class Node; 57 class Node;
58 class Page; 58 class Page;
59 class LayoutAnalyzer; 59 class LayoutAnalyzer;
60 class LayoutBox; 60 class LayoutBox;
61 class LayoutEmbeddedObject; 61 class LayoutEmbeddedObject;
62 class LayoutObject; 62 class LayoutObject;
63 class LayoutScrollbarPart; 63 class LayoutScrollbarPart;
64 class LayoutView; 64 class LayoutView;
65 class ScrollingCoordinator; 65 class ScrollingCoordinator;
66 class TracedValue; 66 class TracedValue;
67 struct CompositedSelectionBound; 67 struct CompositedSelection;
68 68
69 typedef unsigned long long DOMTimeStamp; 69 typedef unsigned long long DOMTimeStamp;
70 70
71 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { 71 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea {
72 public: 72 public:
73 friend class LayoutView; 73 friend class LayoutView;
74 friend class Internals; 74 friend class Internals;
75 75
76 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); 76 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*);
77 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize); 77 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize);
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 void scheduleUpdateWidgetsIfNecessary(); 673 void scheduleUpdateWidgetsIfNecessary();
674 void updateWidgetsTimerFired(Timer<FrameView>*); 674 void updateWidgetsTimerFired(Timer<FrameView>*);
675 bool updateWidgets(); 675 bool updateWidgets();
676 676
677 void scrollToAnchor(); 677 void scrollToAnchor();
678 void scrollPositionChanged(); 678 void scrollPositionChanged();
679 void didScrollTimerFired(Timer<FrameView>*); 679 void didScrollTimerFired(Timer<FrameView>*);
680 680
681 void updateLayersAndCompositingAfterScrollIfNeeded(); 681 void updateLayersAndCompositingAfterScrollIfNeeded();
682 682
683 static bool computeCompositedSelectionBounds(LocalFrame&, CompositedSelectio nBound& start, CompositedSelectionBound& end); 683 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&);
684 void updateCompositedSelectionBoundsIfNeeded(); 684 void updateCompositedSelectionIfNeeded();
685 685
686 // Returns true if the FrameView's own scrollbars overlay its content when v isible. 686 // Returns true if the FrameView's own scrollbars overlay its content when v isible.
687 bool hasOverlayScrollbars() const; 687 bool hasOverlayScrollbars() const;
688 688
689 // Returns true if the frame should use custom scrollbars. If true, one of 689 // Returns true if the frame should use custom scrollbars. If true, one of
690 // either |customScrollbarElement| or |customScrollbarFrame| will be set to 690 // either |customScrollbarElement| or |customScrollbarFrame| will be set to
691 // the element or frame which owns the scrollbar with the other set to null. 691 // the element or frame which owns the scrollbar with the other set to null.
692 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame* & customScrollbarFrame) const; 692 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame* & customScrollbarFrame) const;
693 693
694 // Returns true if a scrollbar needs to go from native -> custom or vice ver sa. 694 // Returns true if a scrollbar needs to go from native -> custom or vice ver sa.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 static const unsigned visualPixelThreshold = 32 * 32; 874 static const unsigned visualPixelThreshold = 32 * 32;
875 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 875 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
876 setIsVisuallyNonEmpty(); 876 setIsVisuallyNonEmpty();
877 } 877 }
878 878
879 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 879 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
880 880
881 } // namespace blink 881 } // namespace blink
882 882
883 #endif // FrameView_h 883 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698