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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A struct for managing browser's settings that apply to the renderer or its 5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's 6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit. 7 // glue layer rather than applying to just WebKit.
8 // 8 //
9 // Adding new values to this class probably involves updating 9 // Adding new values to this class probably involves updating
10 // common/view_messages.h, browser/browser.cc, etc. 10 // common/view_messages.h, browser/browser.cc, etc.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool plugin_fullscreen_allowed; 128 bool plugin_fullscreen_allowed;
129 129
130 // Whether video-overlay (hole-punching) should be used for the embedded 130 // Whether video-overlay (hole-punching) should be used for the embedded
131 // encrypted video. Currently only used by Android. 131 // encrypted video. Currently only used by Android.
132 bool use_video_overlay_for_embedded_encrypted_video; 132 bool use_video_overlay_for_embedded_encrypted_video;
133 133
134 // Use video-overlay (hole-punching) should be used for all video, not just 134 // Use video-overlay (hole-punching) should be used for all video, not just
135 // encrypted video. Currently only used by Android. 135 // encrypted video. Currently only used by Android.
136 bool use_view_overlay_for_all_video; 136 bool use_view_overlay_for_all_video;
137 137
138 #if defined(OS_WIN)
138 // The default system font settings for caption, small caption, menu and 139 // The default system font settings for caption, small caption, menu and
139 // status messages. Used only by Windows. 140 // status messages. Used only by Windows.
140 base::string16 caption_font_family_name; 141 base::string16 caption_font_family_name;
141 int32 caption_font_height; 142 int32 caption_font_height;
142 143
143 base::string16 small_caption_font_family_name; 144 base::string16 small_caption_font_family_name;
144 int32 small_caption_font_height; 145 int32 small_caption_font_height;
145 146
146 base::string16 menu_font_family_name; 147 base::string16 menu_font_family_name;
147 int32 menu_font_height; 148 int32 menu_font_height;
148 149
149 base::string16 status_font_family_name; 150 base::string16 status_font_family_name;
150 int32 status_font_height; 151 int32 status_font_height;
151 152
152 base::string16 message_font_family_name; 153 base::string16 message_font_family_name;
153 int32 message_font_height; 154 int32 message_font_height;
154 155
155 // Contry iso of the mobile network for content detection purpose. 156 // Contry iso of the mobile network for content detection purpose.
156 std::string network_contry_iso; 157 std::string network_contry_iso;
158
159 // The width of a vertical scroll bar in dips.
160 int32 vertical_scroll_bar_width_in_dips;
161
162 // The height of a horizontal scroll bar in dips.
163 int32 horizontal_scroll_bar_height_in_dips;
164
165 // The height of the arrow bitmap on a vertical scroll bar in dips.
166 int32 arrow_bitmap_height_vertical_scroll_bar_in_dips;
167
168 // The width of the arrow bitmap on a horizontal scroll bar in dips.
169 int32 arrow_bitmap_width_horizontal_scroll_bar_in_dips;
170 #endif
171
157 }; 172 };
158 173
159 } // namespace content 174 } // namespace content
160 175
161 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 176 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698