OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Holger Hans Peter Freyther | 3 * Copyright (C) 2009 Holger Hans Peter Freyther |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 IntPoint rootViewToContents(const IntPoint&) const; | 173 IntPoint rootViewToContents(const IntPoint&) const; |
174 IntPoint contentsToRootView(const IntPoint&) const; | 174 IntPoint contentsToRootView(const IntPoint&) const; |
175 IntRect rootViewToContents(const IntRect&) const; | 175 IntRect rootViewToContents(const IntRect&) const; |
176 IntRect contentsToRootView(const IntRect&) const; | 176 IntRect contentsToRootView(const IntRect&) const; |
177 | 177 |
178 // Event coordinates are assumed to be in the coordinate space of a window t
hat contains | 178 // Event coordinates are assumed to be in the coordinate space of a window t
hat contains |
179 // the entire widget hierarchy. It is up to the platform to decide what the
precise definition | 179 // the entire widget hierarchy. It is up to the platform to decide what the
precise definition |
180 // of containing window is. (For example on Mac it is the containing NSWindo
w.) | 180 // of containing window is. (For example on Mac it is the containing NSWindo
w.) |
181 IntPoint windowToContents(const IntPoint&) const; | 181 IntPoint windowToContents(const IntPoint&) const; |
| 182 FloatPoint windowToContents(const FloatPoint&) const; |
182 IntPoint contentsToWindow(const IntPoint&) const; | 183 IntPoint contentsToWindow(const IntPoint&) const; |
183 IntRect windowToContents(const IntRect&) const; | 184 IntRect windowToContents(const IntRect&) const; |
184 IntRect contentsToWindow(const IntRect&) const; | 185 IntRect contentsToWindow(const IntRect&) const; |
185 | 186 |
186 // Functions for converting to screen coordinates. | 187 // Functions for converting to screen coordinates. |
187 IntRect contentsToScreen(const IntRect&) const; | 188 IntRect contentsToScreen(const IntRect&) const; |
188 | 189 |
189 // These functions are used to enable scrollbars to avoid window resizer con
trols that overlap the scroll view. This happens on Mac | 190 // These functions are used to enable scrollbars to avoid window resizer con
trols that overlap the scroll view. This happens on Mac |
190 // for example. | 191 // for example. |
191 virtual IntRect windowResizerRect() const { return IntRect(); } | 192 virtual IntRect windowResizerRect() const { return IntRect(); } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 322 |
322 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); | 323 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); |
323 void updateOverhangAreas(); | 324 void updateOverhangAreas(); |
324 }; // class ScrollView | 325 }; // class ScrollView |
325 | 326 |
326 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); | 327 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); |
327 | 328 |
328 } // namespace WebCore | 329 } // namespace WebCore |
329 | 330 |
330 #endif // ScrollView_h | 331 #endif // ScrollView_h |
OLD | NEW |