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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h

Issue 2045963003: WebScrollbarThemeClientImpl should not be DisplayItemClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
index b838e20f49d78ee40397f37eb49da1b02415db1d..e2bcebb299289166a89ad0d4562a1a32c39ee3dc 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
@@ -30,7 +30,7 @@
#include "platform/geometry/IntRect.h"
#include "platform/graphics/paint/DisplayItem.h"
#include "platform/scroll/ScrollTypes.h"
-#include "platform/scroll/ScrollbarThemeClient.h"
+#include "platform/scroll/Scrollbar.h"
#include "public/platform/WebScrollbarButtonsPlacement.h"
namespace blink {
@@ -53,7 +53,7 @@ public:
virtual void updateEnabledState(const ScrollbarThemeClient&) { }
- virtual bool paint(const ScrollbarThemeClient&, GraphicsContext&, const CullRect&);
+ virtual bool paint(const Scrollbar&, GraphicsContext&, const CullRect&);
virtual ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&);
@@ -78,7 +78,7 @@ public:
}
virtual void paintScrollCorner(GraphicsContext&, const DisplayItemClient&, const IntRect& cornerRect);
- virtual void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) { }
+ virtual void paintTickmarks(GraphicsContext&, const Scrollbar&, const IntRect&) { }
virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, const PlatformMouseEvent&);
virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, const PlatformMouseEvent&);
@@ -110,11 +110,11 @@ public:
virtual void splitTrack(const ScrollbarThemeClient&, const IntRect& track, IntRect& startTrack, IntRect& thumb, IntRect& endTrack);
- virtual void paintScrollbarBackground(GraphicsContext&, const ScrollbarThemeClient&) { }
- virtual void paintTrackBackground(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) { }
- virtual void paintTrackPiece(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&, ScrollbarPart) { }
- virtual void paintButton(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&, ScrollbarPart) { }
- virtual void paintThumb(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) { }
+ virtual void paintScrollbarBackground(GraphicsContext&, const Scrollbar&) { }
+ virtual void paintTrackBackground(GraphicsContext&, const Scrollbar&, const IntRect&) { }
+ virtual void paintTrackPiece(GraphicsContext&, const Scrollbar&, const IntRect&, ScrollbarPart) { }
+ virtual void paintButton(GraphicsContext&, const Scrollbar&, const IntRect&, ScrollbarPart) { }
+ virtual void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) { }
virtual int maxOverlapBetweenPages() { return std::numeric_limits<int>::max(); }
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698