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

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

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/dom/Element.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize) ; 65 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize) ;
66 66
67 virtual ~FrameView(); 67 virtual ~FrameView();
68 68
69 virtual HostWindow* hostWindow() const OVERRIDE; 69 virtual HostWindow* hostWindow() const OVERRIDE;
70 70
71 virtual void invalidateRect(const IntRect&) OVERRIDE; 71 virtual void invalidateRect(const IntRect&) OVERRIDE;
72 virtual void setFrameRect(const IntRect&) OVERRIDE; 72 virtual void setFrameRect(const IntRect&) OVERRIDE;
73 73
74 virtual bool scheduleAnimation() OVERRIDE; 74 virtual bool scheduleAnimation() OVERRIDE;
75 virtual void serviceScrollAnimations(double monotonicTime) OVERRIDE;
75 76
76 LocalFrame& frame() const { return *m_frame; } 77 LocalFrame& frame() const { return *m_frame; }
77 Page* page() const; 78 Page* page() const;
78 79
79 RenderView* renderView() const; 80 RenderView* renderView() const;
80 81
81 virtual void setCanHaveScrollbars(bool) OVERRIDE; 82 virtual void setCanHaveScrollbars(bool) OVERRIDE;
82 83
83 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE ; 84 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE ;
84 85
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 virtual IntRect windowResizerRect() const OVERRIDE; 146 virtual IntRect windowResizerRect() const OVERRIDE;
146 147
147 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC ontentScaleFactor; } 148 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC ontentScaleFactor; }
148 void setVisibleContentScaleFactor(float); 149 void setVisibleContentScaleFactor(float);
149 150
150 virtual float inputEventsScaleFactor() const OVERRIDE; 151 virtual float inputEventsScaleFactor() const OVERRIDE;
151 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; 152 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE;
152 void setInputEventsTransformForEmulation(const IntSize&, float); 153 void setInputEventsTransformForEmulation(const IntSize&, float);
153 154
154 virtual void setScrollPosition(const IntPoint&) OVERRIDE; 155 virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehav iorInstant) OVERRIDE;
155 virtual bool isRubberBandInProgress() const OVERRIDE; 156 virtual bool isRubberBandInProgress() const OVERRIDE;
156 void setScrollPositionNonProgrammatically(const IntPoint&); 157 void setScrollPositionNonProgrammatically(const IntPoint&);
157 158
158 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 159 // This is different than visibleContentRect() in that it ignores negative ( or overly positive)
159 // offsets from rubber-banding, and it takes zooming into account. 160 // offsets from rubber-banding, and it takes zooming into account.
160 LayoutRect viewportConstrainedVisibleContentRect() const; 161 LayoutRect viewportConstrainedVisibleContentRect() const;
161 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged); 162 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged);
162 163
163 AtomicString mediaType() const; 164 AtomicString mediaType() const;
164 void setMediaType(const AtomicString&); 165 void setMediaType(const AtomicString&);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 RenderBox* embeddedContentBox() const; 265 RenderBox* embeddedContentBox() const;
265 266
266 void setTracksPaintInvalidations(bool); 267 void setTracksPaintInvalidations(bool);
267 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida tions; } 268 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida tions; }
268 void resetTrackedPaintInvalidations(); 269 void resetTrackedPaintInvalidations();
269 270
270 String trackedPaintInvalidationRectsAsText() const; 271 String trackedPaintInvalidationRectsAsText() const;
271 272
272 typedef HashSet<ScrollableArea*> ScrollableAreaSet; 273 typedef HashSet<ScrollableArea*> ScrollableAreaSet;
273 void addScrollableArea(ScrollableArea*); 274 void addScrollableArea(ScrollableArea*);
275 bool addAnimatingScrollableArea(ScrollableArea*);
274 void removeScrollableArea(ScrollableArea*); 276 void removeScrollableArea(ScrollableArea*);
277 bool removeAnimatingScrollableArea(ScrollableArea*);
275 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); } 278 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); }
276 279
277 // With CSS style "resize:" enabled, a little resizer handle will appear at the bottom 280 // With CSS style "resize:" enabled, a little resizer handle will appear at the bottom
278 // right of the object. We keep track of these resizer areas for checking if touches 281 // right of the object. We keep track of these resizer areas for checking if touches
279 // (implemented using Scroll gesture) are targeting the resizer. 282 // (implemented using Scroll gesture) are targeting the resizer.
280 typedef HashSet<RenderBox*> ResizerAreaSet; 283 typedef HashSet<RenderBox*> ResizerAreaSet;
281 void addResizerArea(RenderBox&); 284 void addResizerArea(RenderBox&);
282 void removeResizerArea(RenderBox&); 285 void removeResizerArea(RenderBox&);
283 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } 286 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); }
284 287
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 bool m_shouldAutoSize; 491 bool m_shouldAutoSize;
489 bool m_inAutoSize; 492 bool m_inAutoSize;
490 // True if autosize has been run since m_shouldAutoSize was set. 493 // True if autosize has been run since m_shouldAutoSize was set.
491 bool m_didRunAutosize; 494 bool m_didRunAutosize;
492 // The lower bound on the size when autosizing. 495 // The lower bound on the size when autosizing.
493 IntSize m_minAutoSize; 496 IntSize m_minAutoSize;
494 // The upper bound on the size when autosizing. 497 // The upper bound on the size when autosizing.
495 IntSize m_maxAutoSize; 498 IntSize m_maxAutoSize;
496 499
497 OwnPtr<ScrollableAreaSet> m_scrollableAreas; 500 OwnPtr<ScrollableAreaSet> m_scrollableAreas;
501 OwnPtr<ScrollableAreaSet> m_animatingScrollableAreas;
498 OwnPtr<ResizerAreaSet> m_resizerAreas; 502 OwnPtr<ResizerAreaSet> m_resizerAreas;
499 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; 503 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
500 504
501 bool m_hasSoftwareFilters; 505 bool m_hasSoftwareFilters;
502 506
503 float m_visibleContentScaleFactor; 507 float m_visibleContentScaleFactor;
504 IntSize m_inputEventsOffsetForEmulation; 508 IntSize m_inputEventsOffsetForEmulation;
505 float m_inputEventsScaleFactorForEmulation; 509 float m_inputEventsScaleFactorForEmulation;
506 510
507 IntSize m_layoutSize; 511 IntSize m_layoutSize;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 561 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
558 } 562 }
559 private: 563 private:
560 FrameView* m_view; 564 FrameView* m_view;
561 bool m_originalValue; 565 bool m_originalValue;
562 }; 566 };
563 567
564 } // namespace WebCore 568 } // namespace WebCore
565 569
566 #endif // FrameView_h 570 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698