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

Unified Diff: content/child/webthemeengine_impl_default.h

Issue 2290743002: Partial revert of https://codereview.chromium.org/1911973002/ (Closed)
Patch Set: comment in header Created 4 years, 4 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 e4e1c7eaddc2f167e028aeab3ecfdbde5c65c4f9..36ddb6bf7f569f0b8b67eeea0580f7b9b12d0834 100644
--- a/content/child/webthemeengine_impl_default.h
+++ b/content/child/webthemeengine_impl_default.h
@@ -27,6 +27,15 @@ class WebThemeEngineImpl : public blink::WebThemeEngine {
blink::WebThemeEngine::State endState,
double progress,
const blink::WebRect& rect);
+#if defined(OS_WIN)
+ // Caches the scrollbar metrics. These are retrieved in the browser and passed
+ // to the renderer in RendererPreferences because the required Windows system
+ // calls cannot be made in sandboxed renderers.
+ static void cacheScrollBarMetrics(int32_t vertical_scroll_bar_width,
+ int32_t horizontal_scroll_bar_height,
+ int32_t vertical_arrow_bitmap_height,
+ int32_t horizontal_arrow_bitmap_width);
+#endif
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698