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

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: 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..13dd30fb3b924db6387fdfad7021c98a13bf9cd8 100644
--- a/content/public/common/renderer_preferences.h
+++ b/content/public/common/renderer_preferences.h
@@ -135,6 +135,10 @@ struct CONTENT_EXPORT RendererPreferences {
// encrypted video. Currently only used by Android.
bool use_view_overlay_for_all_video;
+ // Country iso of the mobile network for content detection purpose.
+ std::string network_contry_iso;
+
+#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;
@@ -152,8 +156,19 @@ struct CONTENT_EXPORT RendererPreferences {
base::string16 message_font_family_name;
int32 message_font_height;
- // 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698