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

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: Fix build error in view_messages Created 5 years, 8 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..a05313aad986f701a1a2ca72459005b163e094ce 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/child/webthemeengine_impl_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698