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

Unified Diff: ui/native_theme/native_theme_win.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_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index e811036b3a34af0cf0a457ddb396159a29ea4886..064f03f7b8e1c784d2359d4364d91a73e7bc5861 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -673,6 +673,20 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
return GetAuraColor(color_id, this);
}
+bool NativeThemeWin::SupportsNinePatch(Part part) const {
+ return false;
+}
+
+gfx::Size NativeThemeWin::GetNinePatchCanvasSize(Part part) const {
+ NOTREACHED() << "NativeThemeWin doesn't support nine-patch resources.";
+ return gfx::Size();
+}
+
+gfx::Rect NativeThemeWin::GetNinePatchAperture(Part part) const {
+ NOTREACHED() << "NativeThemeWin doesn't support nine-patch resources.";
+ return gfx::Rect();
+}
+
void NativeThemeWin::PaintIndirect(SkCanvas* destination_canvas,
HDC destination_hdc,
Part part,

Powered by Google App Engine
This is Rietveld 408576698