Chromium Code Reviews| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } | 196 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } |
| 197 | 197 |
| 198 bool isActive() const; | 198 bool isActive() const; |
| 199 | 199 |
| 200 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter | 200 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter |
| 201 // passed around the FrameView layout methods can be true while this returns | 201 // passed around the FrameView layout methods can be true while this returns |
| 202 // false. | 202 // false. |
| 203 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } | 203 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } |
| 204 | 204 |
| 205 // FIXME(sky): remove | 205 // FIXME(sky): remove |
| 206 IntRect contentsToScreen(const IntRect& rect) const; | 206 IntPoint windowToContents(const IntPoint& windowPoint) const { return window Point; } |
|
ojan
2014/10/30 00:41:03
Whoops.
| |
| 207 IntPoint contentsToRootView(const IntPoint& contentsPoint) const { return co nvertToRootView(contentsPoint); } | 207 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsPoint; } |
| 208 IntRect contentsToRootView(const IntRect& contentsRect) const { return conve rtToRootView(contentsRect); } | 208 IntRect windowToContents(const IntRect& windowRect) const { return windowRec t; } |
| 209 IntRect rootViewToContents(const IntRect& rootViewRect) const { return conve rtFromRootView(rootViewRect); } | 209 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sRect; } |
| 210 IntPoint windowToContents(const IntPoint& windowPoint) const { return conver tFromContainingWindow(windowPoint); } | 210 |
| 211 FloatPoint windowToContents(const FloatPoint& windowPoint) const { return co nvertFromContainingWindow(windowPoint); } | |
| 212 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsToWindow(contentsPoint); } | |
| 213 IntRect windowToContents(const IntRect& windowRect) const { return convertFr omContainingWindow(windowRect); } | |
| 214 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sToWindow(contentsRect); } | |
| 215 bool scheduleAnimation(); | 211 bool scheduleAnimation(); |
| 216 IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) cons t { return IntRect(IntPoint(), expandedIntSize(frameRect().size())); } | 212 IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) cons t { return IntRect(IntPoint(), expandedIntSize(frameRect().size())); } |
| 217 IntSize unscaledVisibleContentSize(IncludeScrollbarsInRect = ExcludeScrollba rs) const { return frameRect().size(); } | 213 IntSize unscaledVisibleContentSize(IncludeScrollbarsInRect = ExcludeScrollba rs) const { return frameRect().size(); } |
| 218 // FIXME(sky): Not clear what values these should return. This is just what they happen to be | 214 // FIXME(sky): Not clear what values these should return. This is just what they happen to be |
| 219 // returning today. | 215 // returning today. |
| 220 bool paintsEntireContents() const { return false; } | 216 bool paintsEntireContents() const { return false; } |
| 221 bool clipsPaintInvalidations() const { return true; } | 217 bool clipsPaintInvalidations() const { return true; } |
| 222 | 218 |
| 223 protected: | 219 protected: |
| 224 bool isVerticalDocument() const; | 220 bool isVerticalDocument() const; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); | 338 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); |
| 343 } | 339 } |
| 344 private: | 340 private: |
| 345 FrameView* m_view; | 341 FrameView* m_view; |
| 346 bool m_originalValue; | 342 bool m_originalValue; |
| 347 }; | 343 }; |
| 348 | 344 |
| 349 } // namespace blink | 345 } // namespace blink |
| 350 | 346 |
| 351 #endif // FrameView_h | 347 #endif // FrameView_h |
| OLD | NEW |