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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class DocumentLifecycle; 48 class DocumentLifecycle;
49 class Cursor; 49 class Cursor;
50 class Element; 50 class Element;
51 class FloatSize; 51 class FloatSize;
52 class HTMLFrameOwnerElement; 52 class HTMLFrameOwnerElement;
53 class LayoutPart; 53 class LayoutPart;
54 class LocalFrame; 54 class LocalFrame;
55 class KURL; 55 class KURL;
56 class Node; 56 class Node;
57 class Page; 57 class Page;
58 class RenderBox; 58 class LayoutBox;
59 class LayoutEmbeddedObject; 59 class LayoutEmbeddedObject;
60 class LayoutObject; 60 class LayoutObject;
61 class LayoutScrollbarPart; 61 class LayoutScrollbarPart;
62 class RenderView; 62 class RenderView;
63 class ScrollingCoordinator; 63 class ScrollingCoordinator;
64 struct CompositedSelectionBound; 64 struct CompositedSelectionBound;
65 65
66 typedef unsigned long long DOMTimeStamp; 66 typedef unsigned long long DOMTimeStamp;
67 67
68 class FrameView final : public Widget, public ScrollableArea { 68 class FrameView final : public Widget, public ScrollableArea {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 void setCursor(const Cursor&); 274 void setCursor(const Cursor&);
275 275
276 virtual bool scrollbarsCanBeActive() const override; 276 virtual bool scrollbarsCanBeActive() const override;
277 277
278 // FIXME: Remove this method once plugin loading is decoupled from layout. 278 // FIXME: Remove this method once plugin loading is decoupled from layout.
279 void flushAnyPendingPostLayoutTasks(); 279 void flushAnyPendingPostLayoutTasks();
280 280
281 virtual bool shouldSuspendScrollAnimations() const override; 281 virtual bool shouldSuspendScrollAnimations() const override;
282 virtual void scrollbarStyleChanged() override; 282 virtual void scrollbarStyleChanged() override;
283 283
284 RenderBox* embeddedContentBox() const; 284 LayoutBox* embeddedContentBox() const;
285 285
286 void setTracksPaintInvalidations(bool); 286 void setTracksPaintInvalidations(bool);
287 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida tions; } 287 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida tions; }
288 void resetTrackedPaintInvalidations(); 288 void resetTrackedPaintInvalidations();
289 289
290 String trackedPaintInvalidationRectsAsText() const; 290 String trackedPaintInvalidationRectsAsText() const;
291 291
292 typedef HashSet<ScrollableArea*> ScrollableAreaSet; 292 typedef HashSet<ScrollableArea*> ScrollableAreaSet;
293 void addScrollableArea(ScrollableArea*); 293 void addScrollableArea(ScrollableArea*);
294 void removeScrollableArea(ScrollableArea*); 294 void removeScrollableArea(ScrollableArea*);
295 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); } 295 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); }
296 296
297 void addAnimatingScrollableArea(ScrollableArea*); 297 void addAnimatingScrollableArea(ScrollableArea*);
298 void removeAnimatingScrollableArea(ScrollableArea*); 298 void removeAnimatingScrollableArea(ScrollableArea*);
299 const ScrollableAreaSet* animatingScrollableAreas() const { return m_animati ngScrollableAreas.get(); } 299 const ScrollableAreaSet* animatingScrollableAreas() const { return m_animati ngScrollableAreas.get(); }
300 300
301 // With CSS style "resize:" enabled, a little resizer handle will appear at the bottom 301 // With CSS style "resize:" enabled, a little resizer handle will appear at the bottom
302 // right of the object. We keep track of these resizer areas for checking if touches 302 // right of the object. We keep track of these resizer areas for checking if touches
303 // (implemented using Scroll gesture) are targeting the resizer. 303 // (implemented using Scroll gesture) are targeting the resizer.
304 typedef HashSet<RenderBox*> ResizerAreaSet; 304 typedef HashSet<LayoutBox*> ResizerAreaSet;
305 void addResizerArea(RenderBox&); 305 void addResizerArea(LayoutBox&);
306 void removeResizerArea(RenderBox&); 306 void removeResizerArea(LayoutBox&);
307 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } 307 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); }
308 308
309 // This function exists for ports that need to handle wheel events manually. 309 // This function exists for ports that need to handle wheel events manually.
310 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms 310 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms
311 // we need this function in order to do the scroll ourselves. 311 // we need this function in order to do the scroll ourselves.
312 ScrollResult wheelEvent(const PlatformWheelEvent&); 312 ScrollResult wheelEvent(const PlatformWheelEvent&);
313 313
314 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } 314 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; }
315 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; } 315 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; }
316 316
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 static const unsigned visualPixelThreshold = 32 * 32; 857 static const unsigned visualPixelThreshold = 32 * 32;
858 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 858 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
859 setIsVisuallyNonEmpty(); 859 setIsVisuallyNonEmpty();
860 } 860 }
861 861
862 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 862 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
863 863
864 } // namespace blink 864 } // namespace blink
865 865
866 #endif // FrameView_h 866 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698