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

Unified Diff: content/child/webthemeengine_impl_default.cc

Issue 2591863003: Use nine-patch resource for drawing Aura overlay scrollbar thumb. (Closed)
Patch Set: Address aelias@'s review 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: content/child/webthemeengine_impl_default.cc
diff --git a/content/child/webthemeengine_impl_default.cc b/content/child/webthemeengine_impl_default.cc
index 169f96952c08e75c5c6b97b7771f2c7b9ca62cdb..6014d2b3072dc1736959040af04788d9c6140649 100644
--- a/content/child/webthemeengine_impl_default.cc
+++ b/content/child/webthemeengine_impl_default.cc
@@ -253,6 +253,21 @@ void WebThemeEngineImpl::getOverlayScrollbarStyle(ScrollbarStyle* style) {
// NativeTheme so these fields are unused.
}
+bool WebThemeEngineImpl::supportsNinePatch(Part part) const {
+ return ui::NativeTheme::GetInstanceForWeb()->SupportsNinePatch(
+ NativeThemePart(part));
+}
+
+blink::WebSize WebThemeEngineImpl::ninePatchCanvasSize(Part part) const {
+ return ui::NativeTheme::GetInstanceForWeb()->GetNinePatchCanvasSize(
+ NativeThemePart(part));
+}
+
+blink::WebRect WebThemeEngineImpl::ninePatchAperture(Part part) const {
+ return ui::NativeTheme::GetInstanceForWeb()->GetNinePatchAperture(
+ NativeThemePart(part));
+}
+
#if defined(OS_WIN)
// static
void WebThemeEngineImpl::cacheScrollBarMetrics(

Powered by Google App Engine
This is Rietveld 408576698