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

Unified Diff: third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.cpp

Issue 2591863003: Use nine-patch resource for drawing Aura overlay scrollbar thumb. (Closed)
Patch Set: Addressed sadrul@'s feedback Created 3 years, 10 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/exported/WebScrollbarThemeGeometryNative.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.cpp b/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.cpp
index 157dacadef7af127226d358956f2a3dd79b1ae82..be7bd6954994ce94002e98e98fedf20d1e383b24 100644
--- a/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.cpp
@@ -82,4 +82,18 @@ WebRect WebScrollbarThemeGeometryNative::forwardButtonEndRect(
ForwardButtonEndPart, false);
}
+WebSize WebScrollbarThemeGeometryNative::ninePatchThumbCanvasSize(
+ WebScrollbar* scrollbar) {
+ DCHECK(m_theme.usesNinePatchThumbResource());
+ return m_theme.ninePatchThumbCanvasSize(
+ WebScrollbarThemeClientImpl(*scrollbar));
+}
+
+WebRect WebScrollbarThemeGeometryNative::ninePatchThumbAperture(
+ WebScrollbar* scrollbar) {
+ DCHECK(m_theme.usesNinePatchThumbResource());
+ return m_theme.ninePatchThumbAperture(
+ WebScrollbarThemeClientImpl(*scrollbar));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698