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

Unified Diff: ui/native_theme/native_theme_base.cc

Issue 2591863003: Use nine-patch resource for drawing Aura overlay scrollbar thumb. (Closed)
Patch Set: Finish Plumbing Created 4 years 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: ui/native_theme/native_theme_base.cc
diff --git a/ui/native_theme/native_theme_base.cc b/ui/native_theme/native_theme_base.cc
index b9d2827db8961cd0c240bcf7c01f23fde6359027..cd8d01068521832a2ce49bdaba34ace8668d1349 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -242,6 +242,20 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
canvas->restore();
}
+bool NativeThemeBase::SupportsNinePatch(Part part) const {
+ return false;
+}
+
+gfx::Size NativeThemeBase::GetNinePatchCanvasSize(Part part) const {
+ NOTREACHED() << "NativeThemeBase doesn't support nine-patch resources.";
+ return gfx::Size();
+}
+
+gfx::Rect NativeThemeBase::GetNinePatchAperture(Part part) const {
+ NOTREACHED() << "NativeThemeBase doesn't support nine-patch resources.";
+ return gfx::Rect();
+}
+
NativeThemeBase::NativeThemeBase()
: scrollbar_width_(kDefaultScrollbarWidth),
scrollbar_button_length_(kDefaultScrollbarButtonLength) {

Powered by Google App Engine
This is Rietveld 408576698