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

Unified Diff: content/public/common/renderer_preferences.cc

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/public/common/renderer_preferences.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/renderer_preferences.cc
diff --git a/content/public/common/renderer_preferences.cc b/content/public/common/renderer_preferences.cc
index 662bc40df806393dd50f034c7f8defbe9b7296ea..e8af8b5dd114032bf8ee8c035e88e2e801b0ee4f 100644
--- a/content/public/common/renderer_preferences.cc
+++ b/content/public/common/renderer_preferences.cc
@@ -38,13 +38,19 @@ RendererPreferences::RendererPreferences()
disable_client_blocked_error_page(false),
plugin_fullscreen_allowed(true),
use_video_overlay_for_embedded_encrypted_video(false),
- use_view_overlay_for_all_video(false),
- caption_font_height(0),
+ use_view_overlay_for_all_video(false)
+#if defined(OS_WIN)
+ , caption_font_height(0),
small_caption_font_height(0),
menu_font_height(0),
status_font_height(0),
- message_font_height(0) {
-}
+ message_font_height(0),
+ vertical_scroll_bar_width_in_dips(0),
+ horizontal_scroll_bar_height_in_dips(0),
+ arrow_bitmap_height_vertical_scroll_bar_in_dips(0),
+ arrow_bitmap_width_horizontal_scroll_bar_in_dips(0)
+#endif
+{}
RendererPreferences::~RendererPreferences() { }
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698