| 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 19 matching lines...) Expand all Loading... |
| 30 #include "platform/PlatformExport.h" | 30 #include "platform/PlatformExport.h" |
| 31 #include "platform/Widget.h" | 31 #include "platform/Widget.h" |
| 32 #include "platform/geometry/IntRect.h" | 32 #include "platform/geometry/IntRect.h" |
| 33 #include "platform/scroll/ScrollTypes.h" | 33 #include "platform/scroll/ScrollTypes.h" |
| 34 #include "platform/scroll/ScrollableArea.h" | 34 #include "platform/scroll/ScrollableArea.h" |
| 35 #include "platform/scroll/Scrollbar.h" | 35 #include "platform/scroll/Scrollbar.h" |
| 36 | 36 |
| 37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 38 #include "wtf/TemporaryChange.h" | 38 #include "wtf/TemporaryChange.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 class HostWindow; | 42 class HostWindow; |
| 43 class Scrollbar; | 43 class Scrollbar; |
| 44 | 44 |
| 45 class PLATFORM_EXPORT ScrollView : public Widget, public ScrollableArea { | 45 class PLATFORM_EXPORT ScrollView : public Widget, public ScrollableArea { |
| 46 public: | 46 public: |
| 47 virtual ~ScrollView(); | 47 virtual ~ScrollView(); |
| 48 | 48 |
| 49 // ScrollableArea functions. | 49 // ScrollableArea functions. |
| 50 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; | 50 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 void destroy(); | 337 void destroy(); |
| 338 | 338 |
| 339 IntRect rectToCopyOnScroll() const; | 339 IntRect rectToCopyOnScroll() const; |
| 340 | 340 |
| 341 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); | 341 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); |
| 342 void updateOverhangAreas(); | 342 void updateOverhangAreas(); |
| 343 }; // class ScrollView | 343 }; // class ScrollView |
| 344 | 344 |
| 345 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); | 345 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); |
| 346 | 346 |
| 347 } // namespace WebCore | 347 } // namespace blink |
| 348 | 348 |
| 349 #endif // ScrollView_h | 349 #endif // ScrollView_h |
| OLD | NEW |