Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1468)

Unified Diff: Source/core/platform/Scrollbar.h

Issue 26936002: Remove Widget's dependency upon its own inheritor aka ScrollView. This was nasty from an OO design… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Clean up by using helper functions where appropriate Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/Scrollbar.h
diff --git a/Source/core/platform/Scrollbar.h b/Source/core/platform/Scrollbar.h
index 9e7500927a963be856d8931ddf05bb4f53aa530e..1e21aa4d4a7ce5dc3e4d1c0df139293d16140ed0 100644
--- a/Source/core/platform/Scrollbar.h
+++ b/Source/core/platform/Scrollbar.h
@@ -35,12 +35,14 @@
namespace WebCore {
+class AXObjectCache;
class GraphicsContext;
class IntRect;
class PlatformGestureEvent;
class PlatformMouseEvent;
class ScrollableArea;
class ScrollbarTheme;
+class ScrollView;
class Scrollbar : public Widget,
public ScrollbarThemeClient {
@@ -58,8 +60,12 @@ public:
virtual IntSize size() const { return Widget::size(); }
virtual IntPoint location() const { return Widget::location(); }
- virtual ScrollView* parent() const { return Widget::parent(); }
- virtual ScrollView* root() const { return Widget::root(); }
+ virtual Widget* parent() const { return Widget::parent(); }
+ virtual Widget* root() const { return Widget::root(); }
+
+ void removeFromParent();
+ ScrollView* parentScrollView() const;
+ ScrollView* rootScrollView() const;
virtual void setFrameRect(const IntRect&);
virtual IntRect frameRect() const { return Widget::frameRect(); }

Powered by Google App Engine
This is Rietveld 408576698