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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 static PassRefPtr<FrameView> create(Frame*); | 64 static PassRefPtr<FrameView> create(Frame*); |
65 static PassRefPtr<FrameView> create(Frame*, const IntSize& initialSize); | 65 static PassRefPtr<FrameView> create(Frame*, 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 registerForAnimation() OVERRIDE; |
74 virtual bool scheduleAnimation() OVERRIDE; | 75 virtual bool scheduleAnimation() OVERRIDE; |
| 76 virtual void serviceScrollAnimations(double monotonicTime) OVERRIDE; |
75 | 77 |
76 Frame& frame() const { return *m_frame; } | 78 Frame& frame() const { return *m_frame; } |
77 | 79 |
78 RenderView* renderView() const; | 80 RenderView* renderView() const; |
79 | 81 |
80 virtual void setCanHaveScrollbars(bool) OVERRIDE; | 82 virtual void setCanHaveScrollbars(bool) OVERRIDE; |
81 | 83 |
82 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE
; | 84 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE
; |
83 | 85 |
84 virtual void setContentsSize(const IntSize&) OVERRIDE; | 86 virtual void setContentsSize(const IntSize&) OVERRIDE; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 152 |
151 virtual IntRect windowResizerRect() const OVERRIDE; | 153 virtual IntRect windowResizerRect() const OVERRIDE; |
152 | 154 |
153 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } | 155 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } |
154 void setVisibleContentScaleFactor(float); | 156 void setVisibleContentScaleFactor(float); |
155 | 157 |
156 virtual float inputEventsScaleFactor() const OVERRIDE; | 158 virtual float inputEventsScaleFactor() const OVERRIDE; |
157 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; | 159 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; |
158 void setInputEventsTransformForEmulation(const IntSize&, float); | 160 void setInputEventsTransformForEmulation(const IntSize&, float); |
159 | 161 |
160 virtual void setScrollPosition(const IntPoint&) OVERRIDE; | 162 virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehav
iorInstant) OVERRIDE; |
161 virtual void repaintFixedElementsAfterScrolling() OVERRIDE; | 163 virtual void repaintFixedElementsAfterScrolling() OVERRIDE; |
162 virtual void updateFixedElementsAfterScrolling() OVERRIDE; | 164 virtual void updateFixedElementsAfterScrolling() OVERRIDE; |
163 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE; | 165 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE; |
164 virtual bool isRubberBandInProgress() const OVERRIDE; | 166 virtual bool isRubberBandInProgress() const OVERRIDE; |
165 void setScrollPositionNonProgrammatically(const IntPoint&); | 167 void setScrollPositionNonProgrammatically(const IntPoint&); |
166 | 168 |
167 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | 169 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) |
168 // offsets from rubber-banding, and it takes zooming into account. | 170 // offsets from rubber-banding, and it takes zooming into account. |
169 LayoutRect viewportConstrainedVisibleContentRect() const; | 171 LayoutRect viewportConstrainedVisibleContentRect() const; |
170 | 172 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 RenderBox* embeddedContentBox() const; | 270 RenderBox* embeddedContentBox() const; |
269 | 271 |
270 void setTracksRepaints(bool); | 272 void setTracksRepaints(bool); |
271 bool isTrackingRepaints() const { return m_isTrackingRepaints; } | 273 bool isTrackingRepaints() const { return m_isTrackingRepaints; } |
272 void resetTrackedRepaints(); | 274 void resetTrackedRepaints(); |
273 String trackedRepaintRectsAsText() const; | 275 String trackedRepaintRectsAsText() const; |
274 | 276 |
275 typedef HashSet<ScrollableArea*> ScrollableAreaSet; | 277 typedef HashSet<ScrollableArea*> ScrollableAreaSet; |
276 // Returns whether the scrollable area has just been newly added. | 278 // Returns whether the scrollable area has just been newly added. |
277 bool addScrollableArea(ScrollableArea*); | 279 bool addScrollableArea(ScrollableArea*); |
| 280 bool addAnimatingScrollableArea(ScrollableArea*); |
278 // Returns whether the scrollable area has just been removed. | 281 // Returns whether the scrollable area has just been removed. |
279 bool removeScrollableArea(ScrollableArea*); | 282 bool removeScrollableArea(ScrollableArea*); |
| 283 bool removeAnimatingScrollableArea(ScrollableArea*); |
280 bool containsScrollableArea(const ScrollableArea*) const; | 284 bool containsScrollableArea(const ScrollableArea*) const; |
281 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } | 285 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } |
282 | 286 |
283 // With CSS style "resize:" enabled, a little resizer handle will appear at
the bottom | 287 // With CSS style "resize:" enabled, a little resizer handle will appear at
the bottom |
284 // right of the object. We keep track of these resizer areas for checking if
touches | 288 // right of the object. We keep track of these resizer areas for checking if
touches |
285 // (implemented using Scroll gesture) are targeting the resizer. | 289 // (implemented using Scroll gesture) are targeting the resizer. |
286 typedef HashSet<RenderBox*> ResizerAreaSet; | 290 typedef HashSet<RenderBox*> ResizerAreaSet; |
287 void addResizerArea(RenderBox*); | 291 void addResizerArea(RenderBox*); |
288 void removeResizerArea(RenderBox*); | 292 void removeResizerArea(RenderBox*); |
289 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } | 293 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; | 382 virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; |
379 virtual void scrollTo(const IntSize&) OVERRIDE; | 383 virtual void scrollTo(const IntSize&) OVERRIDE; |
380 virtual ScrollableArea* enclosingScrollableArea() const OVERRIDE; | 384 virtual ScrollableArea* enclosingScrollableArea() const OVERRIDE; |
381 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; | 385 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; |
382 virtual bool scrollAnimatorEnabled() const OVERRIDE; | 386 virtual bool scrollAnimatorEnabled() const OVERRIDE; |
383 virtual bool usesCompositedScrolling() const OVERRIDE; | 387 virtual bool usesCompositedScrolling() const OVERRIDE; |
384 virtual GraphicsLayer* layerForScrolling() const OVERRIDE; | 388 virtual GraphicsLayer* layerForScrolling() const OVERRIDE; |
385 virtual GraphicsLayer* layerForHorizontalScrollbar() const OVERRIDE; | 389 virtual GraphicsLayer* layerForHorizontalScrollbar() const OVERRIDE; |
386 virtual GraphicsLayer* layerForVerticalScrollbar() const OVERRIDE; | 390 virtual GraphicsLayer* layerForVerticalScrollbar() const OVERRIDE; |
387 virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE; | 391 virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE; |
| 392 virtual bool compositedScrollAnimationsEnabled() const OVERRIDE; |
388 | 393 |
389 void sendResizeEventIfNeeded(); | 394 void sendResizeEventIfNeeded(); |
390 | 395 |
391 void updateScrollableAreaSet(); | 396 void updateScrollableAreaSet(); |
392 | 397 |
393 virtual void notifyPageThatContentAreaWillPaint() const OVERRIDE; | 398 virtual void notifyPageThatContentAreaWillPaint() const OVERRIDE; |
394 | 399 |
395 void updateWidgetsTimerFired(Timer<FrameView>*); | 400 void updateWidgetsTimerFired(Timer<FrameView>*); |
396 bool updateWidgets(); | 401 bool updateWidgets(); |
397 | 402 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 bool m_shouldAutoSize; | 506 bool m_shouldAutoSize; |
502 bool m_inAutoSize; | 507 bool m_inAutoSize; |
503 // True if autosize has been run since m_shouldAutoSize was set. | 508 // True if autosize has been run since m_shouldAutoSize was set. |
504 bool m_didRunAutosize; | 509 bool m_didRunAutosize; |
505 // The lower bound on the size when autosizing. | 510 // The lower bound on the size when autosizing. |
506 IntSize m_minAutoSize; | 511 IntSize m_minAutoSize; |
507 // The upper bound on the size when autosizing. | 512 // The upper bound on the size when autosizing. |
508 IntSize m_maxAutoSize; | 513 IntSize m_maxAutoSize; |
509 | 514 |
510 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 515 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
| 516 OwnPtr<ScrollableAreaSet> m_animatingScrollableAreas; |
511 OwnPtr<ResizerAreaSet> m_resizerAreas; | 517 OwnPtr<ResizerAreaSet> m_resizerAreas; |
512 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 518 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
513 | 519 |
514 bool m_hasSoftwareFilters; | 520 bool m_hasSoftwareFilters; |
515 | 521 |
516 float m_visibleContentScaleFactor; | 522 float m_visibleContentScaleFactor; |
517 IntSize m_inputEventsOffsetForEmulation; | 523 IntSize m_inputEventsOffsetForEmulation; |
518 float m_inputEventsScaleFactorForEmulation; | 524 float m_inputEventsScaleFactorForEmulation; |
519 | 525 |
520 PartialLayoutState m_partialLayout; | 526 PartialLayoutState m_partialLayout; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 m_view->setCanRepaintDuringPerformLayout(m_originalValue); | 575 m_view->setCanRepaintDuringPerformLayout(m_originalValue); |
570 } | 576 } |
571 private: | 577 private: |
572 FrameView* m_view; | 578 FrameView* m_view; |
573 bool m_originalValue; | 579 bool m_originalValue; |
574 }; | 580 }; |
575 | 581 |
576 } // namespace WebCore | 582 } // namespace WebCore |
577 | 583 |
578 #endif // FrameView_h | 584 #endif // FrameView_h |
OLD | NEW |