| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida
tions; } | 172 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida
tions; } |
| 173 void resetTrackedPaintInvalidations(); | 173 void resetTrackedPaintInvalidations(); |
| 174 | 174 |
| 175 String trackedPaintInvalidationRectsAsText() const; | 175 String trackedPaintInvalidationRectsAsText() const; |
| 176 | 176 |
| 177 typedef HashSet<ScrollableArea*> ScrollableAreaSet; | 177 typedef HashSet<ScrollableArea*> ScrollableAreaSet; |
| 178 void addScrollableArea(ScrollableArea*); | 178 void addScrollableArea(ScrollableArea*); |
| 179 void removeScrollableArea(ScrollableArea*); | 179 void removeScrollableArea(ScrollableArea*); |
| 180 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } | 180 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } |
| 181 | 181 |
| 182 // With CSS style "resize:" enabled, a little resizer handle will appear at
the bottom | |
| 183 // right of the object. We keep track of these resizer areas for checking if
touches | |
| 184 // (implemented using Scroll gesture) are targeting the resizer. | |
| 185 typedef HashSet<RenderBox*> ResizerAreaSet; | |
| 186 void addResizerArea(RenderBox&); | |
| 187 void removeResizerArea(RenderBox&); | |
| 188 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } | |
| 189 | |
| 190 // This function exists for ports that need to handle wheel events manually. | 182 // This function exists for ports that need to handle wheel events manually. |
| 191 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o
n most other platforms | 183 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o
n most other platforms |
| 192 // we need this function in order to do the scroll ourselves. | 184 // we need this function in order to do the scroll ourselves. |
| 193 bool wheelEvent(const PlatformWheelEvent&); | 185 bool wheelEvent(const PlatformWheelEvent&); |
| 194 | 186 |
| 195 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } | 187 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } |
| 196 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } | 188 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } |
| 197 | 189 |
| 198 bool isActive() const; | 190 bool isActive() const; |
| 199 | 191 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 double m_lastPaintTime; | 287 double m_lastPaintTime; |
| 296 | 288 |
| 297 bool m_isTrackingPaintInvalidations; // Used for testing. | 289 bool m_isTrackingPaintInvalidations; // Used for testing. |
| 298 Vector<IntRect> m_trackedPaintInvalidationRects; | 290 Vector<IntRect> m_trackedPaintInvalidationRects; |
| 299 | 291 |
| 300 RefPtr<Node> m_nodeToDraw; | 292 RefPtr<Node> m_nodeToDraw; |
| 301 PaintBehavior m_paintBehavior; | 293 PaintBehavior m_paintBehavior; |
| 302 bool m_isPainting; | 294 bool m_isPainting; |
| 303 | 295 |
| 304 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 296 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
| 305 OwnPtr<ResizerAreaSet> m_resizerAreas; | |
| 306 | 297 |
| 307 bool m_hasSoftwareFilters; | 298 bool m_hasSoftwareFilters; |
| 308 | 299 |
| 309 float m_visibleContentScaleFactor; | 300 float m_visibleContentScaleFactor; |
| 310 IntSize m_inputEventsOffsetForEmulation; | 301 IntSize m_inputEventsOffsetForEmulation; |
| 311 float m_inputEventsScaleFactorForEmulation; | 302 float m_inputEventsScaleFactorForEmulation; |
| 312 | 303 |
| 313 IntSize m_layoutSize; | 304 IntSize m_layoutSize; |
| 314 bool m_layoutSizeFixedToFrameSize; | 305 bool m_layoutSizeFixedToFrameSize; |
| 315 | 306 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 338 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); | 329 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); |
| 339 } | 330 } |
| 340 private: | 331 private: |
| 341 FrameView* m_view; | 332 FrameView* m_view; |
| 342 bool m_originalValue; | 333 bool m_originalValue; |
| 343 }; | 334 }; |
| 344 | 335 |
| 345 } // namespace blink | 336 } // namespace blink |
| 346 | 337 |
| 347 #endif // FrameView_h | 338 #endif // FrameView_h |
| OLD | NEW |