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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint& poi
nt) const | 226 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint& poi
nt) const |
227 { | 227 { |
228 IntPoint newPoint = point; | 228 IntPoint newPoint = point; |
229 if (!isScrollViewScrollbar(child)) | 229 if (!isScrollViewScrollbar(child)) |
230 newPoint = point + scrollOffset(); | 230 newPoint = point + scrollOffset(); |
231 newPoint.moveBy(-child->location()); | 231 newPoint.moveBy(-child->location()); |
232 return newPoint; | 232 return newPoint; |
233 } | 233 } |
234 | 234 |
235 // A means to access the AX cache when this object can get a pointer to it. | |
236 virtual AXObjectCache* axObjectCache() const { return 0; } | |
237 | |
238 // Widget override. Handles painting of the contents of the view as well as
the scrollbars. | 235 // Widget override. Handles painting of the contents of the view as well as
the scrollbars. |
239 virtual void paint(GraphicsContext*, const IntRect&); | 236 virtual void paint(GraphicsContext*, const IntRect&); |
240 void paintScrollbars(GraphicsContext*, const IntRect&); | 237 void paintScrollbars(GraphicsContext*, const IntRect&); |
241 | 238 |
242 // Widget overrides to ensure that our children's visibility status is kept
up to date when we get shown and hidden. | 239 // Widget overrides to ensure that our children's visibility status is kept
up to date when we get shown and hidden. |
243 virtual void show(); | 240 virtual void show(); |
244 virtual void hide(); | 241 virtual void hide(); |
245 virtual void setParentVisible(bool); | 242 virtual void setParentVisible(bool); |
246 | 243 |
247 // Pan scrolling. | 244 // Pan scrolling. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 ASSERT(!widget || widget->isScrollView()); | 352 ASSERT(!widget || widget->isScrollView()); |
356 return static_cast<const ScrollView*>(widget); | 353 return static_cast<const ScrollView*>(widget); |
357 } | 354 } |
358 | 355 |
359 // This will catch anyone doing an unnecessary cast. | 356 // This will catch anyone doing an unnecessary cast. |
360 void toScrollView(const ScrollView*); | 357 void toScrollView(const ScrollView*); |
361 | 358 |
362 } // namespace WebCore | 359 } // namespace WebCore |
363 | 360 |
364 #endif // ScrollView_h | 361 #endif // ScrollView_h |
OLD | NEW |