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

Unified Diff: cc/blink/web_compositor_support_impl.cc

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: cc/blink/web_compositor_support_impl.cc
diff --git a/cc/blink/web_compositor_support_impl.cc b/cc/blink/web_compositor_support_impl.cc
index ac2b81589d687592b6428e2e44c7a20122be4eec..7bb783e571639f56cf8bce033cc2e443cd95b58d 100644
--- a/cc/blink/web_compositor_support_impl.cc
+++ b/cc/blink/web_compositor_support_impl.cc
@@ -71,6 +71,15 @@ WebCompositorSupportImpl::createScrollbarLayer(
}
std::unique_ptr<WebScrollbarLayer>
+WebCompositorSupportImpl::createOverlayScrollbarLayer(
+ std::unique_ptr<WebScrollbar> scrollbar,
+ WebScrollbarThemePainter painter,
+ std::unique_ptr<WebScrollbarThemeGeometry> geometry) {
+ return base::MakeUnique<WebScrollbarLayerImpl>(std::move(scrollbar), painter,
+ std::move(geometry), true);
+}
+
+std::unique_ptr<WebScrollbarLayer>
WebCompositorSupportImpl::createSolidColorScrollbarLayer(
WebScrollbar::Orientation orientation,
int thumb_thickness,

Powered by Google App Engine
This is Rietveld 408576698