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

Unified Diff: content/child/webthemeengine_impl_default.h

Issue 1054243002: Avoid calling the GetSystemMetrics API in the renderer process on Windows to get the scrollbar metr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary include Created 5 years, 9 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.h
diff --git a/content/child/webthemeengine_impl_default.h b/content/child/webthemeengine_impl_default.h
index b757d441b39955ccc186443de7f5bb69c89c3ce1..47f01f21873797c04c4d0cd38e11ee67892c2a7f 100644
--- a/content/child/webthemeengine_impl_default.h
+++ b/content/child/webthemeengine_impl_default.h
@@ -25,6 +25,14 @@ class WebThemeEngineImpl : public blink::WebThemeEngine {
blink::WebThemeEngine::State endState,
double progress,
const blink::WebRect& rect);
+
+#if defined(OS_WIN)
+ // Caches the scrollbar metrics.
+ static void CacheScrollBarMetrics(int32 vertical_scroll_bar_width,
+ int32 horizontal_scroll_bar_height,
+ int32 vertical_arrow_bitmap_height,
+ int32 horizontal_arrow_bitmap_width);
+#endif
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698