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

Unified Diff: content/public/common/renderer_preferences.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/public/common/renderer_preferences.h
diff --git a/content/public/common/renderer_preferences.h b/content/public/common/renderer_preferences.h
index adc9901a2d4a28c248399dfe0fbf79a141af01d1..c584e9a974ea775d3548a8372bf2913799e20c45 100644
--- a/content/public/common/renderer_preferences.h
+++ b/content/public/common/renderer_preferences.h
@@ -135,6 +135,7 @@ struct CONTENT_EXPORT RendererPreferences {
// encrypted video. Currently only used by Android.
bool use_view_overlay_for_all_video;
+#if defined(OS_WIN)
// The default system font settings for caption, small caption, menu and
// status messages. Used only by Windows.
base::string16 caption_font_family_name;
@@ -154,6 +155,20 @@ struct CONTENT_EXPORT RendererPreferences {
// Contry iso of the mobile network for content detection purpose.
std::string network_contry_iso;
+
+ // The width of a vertical scroll bar in dips.
+ int32 vertical_scroll_bar_width_in_dips;
+
+ // The height of a horizontal scroll bar in dips.
+ int32 horizontal_scroll_bar_height_in_dips;
+
+ // The height of the arrow bitmap on a vertical scroll bar in dips.
+ int32 arrow_bitmap_height_vertical_scroll_bar_in_dips;
+
+ // The width of the arrow bitmap on a horizontal scroll bar in dips.
+ int32 arrow_bitmap_width_horizontal_scroll_bar_in_dips;
+#endif
+
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698