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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void adjustViewSize(); | 146 void adjustViewSize(); |
147 | 147 |
148 virtual IntRect windowClipRect(bool clipToContents = true) const; | 148 virtual IntRect windowClipRect(bool clipToContents = true) const; |
149 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; | 149 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; |
150 | 150 |
151 virtual IntRect windowResizerRect() const; | 151 virtual IntRect windowResizerRect() const; |
152 | 152 |
153 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } | 153 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } |
154 void setVisibleContentScaleFactor(float); | 154 void setVisibleContentScaleFactor(float); |
155 | 155 |
| 156 virtual float inputEventsScaleFactor() const OVERRIDE; |
| 157 void setInputEventsScaleFactorForEmulation(float); |
| 158 |
156 virtual void setScrollPosition(const IntPoint&) OVERRIDE; | 159 virtual void setScrollPosition(const IntPoint&) OVERRIDE; |
157 virtual void repaintFixedElementsAfterScrolling(); | 160 virtual void repaintFixedElementsAfterScrolling(); |
158 virtual void updateFixedElementsAfterScrolling(); | 161 virtual void updateFixedElementsAfterScrolling(); |
159 virtual bool shouldRubberBandInDirection(ScrollDirection) const; | 162 virtual bool shouldRubberBandInDirection(ScrollDirection) const; |
160 virtual bool requestScrollPositionUpdate(const IntPoint&) OVERRIDE; | 163 virtual bool requestScrollPositionUpdate(const IntPoint&) OVERRIDE; |
161 virtual bool isRubberBandInProgress() const OVERRIDE; | 164 virtual bool isRubberBandInProgress() const OVERRIDE; |
162 void setScrollPositionNonProgrammatically(const IntPoint&); | 165 void setScrollPositionNonProgrammatically(const IntPoint&); |
163 | 166 |
164 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | 167 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) |
165 // offsets from rubber-banding, and it takes zooming into account. | 168 // offsets from rubber-banding, and it takes zooming into account. |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 536 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
534 | 537 |
535 static double s_normalDeferredRepaintDelay; | 538 static double s_normalDeferredRepaintDelay; |
536 static double s_initialDeferredRepaintDelayDuringLoading; | 539 static double s_initialDeferredRepaintDelayDuringLoading; |
537 static double s_maxDeferredRepaintDelayDuringLoading; | 540 static double s_maxDeferredRepaintDelayDuringLoading; |
538 static double s_deferredRepaintDelayIncrementDuringLoading; | 541 static double s_deferredRepaintDelayIncrementDuringLoading; |
539 | 542 |
540 bool m_hasSoftwareFilters; | 543 bool m_hasSoftwareFilters; |
541 | 544 |
542 float m_visibleContentScaleFactor; | 545 float m_visibleContentScaleFactor; |
| 546 float m_inputEventsScaleFactorForEmulation; |
543 | 547 |
544 PartialLayoutState m_partialLayout; | 548 PartialLayoutState m_partialLayout; |
545 }; | 549 }; |
546 | 550 |
547 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 551 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
548 { | 552 { |
549 if (m_isVisuallyNonEmpty) | 553 if (m_isVisuallyNonEmpty) |
550 return; | 554 return; |
551 m_visuallyNonEmptyCharacterCount += count; | 555 m_visuallyNonEmptyCharacterCount += count; |
552 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. | 556 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. |
(...skipping 25 matching lines...) Expand all Loading... |
578 ASSERT(!widget || widget->isFrameView()); | 582 ASSERT(!widget || widget->isFrameView()); |
579 return static_cast<const FrameView*>(widget); | 583 return static_cast<const FrameView*>(widget); |
580 } | 584 } |
581 | 585 |
582 // This will catch anyone doing an unnecessary cast. | 586 // This will catch anyone doing an unnecessary cast. |
583 void toFrameView(const FrameView*); | 587 void toFrameView(const FrameView*); |
584 | 588 |
585 } // namespace WebCore | 589 } // namespace WebCore |
586 | 590 |
587 #endif // FrameView_h | 591 #endif // FrameView_h |
OLD | NEW |