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

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: 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int32 menu_font_height; 147 int32 menu_font_height;
148 148
149 base::string16 status_font_family_name; 149 base::string16 status_font_family_name;
150 int32 status_font_height; 150 int32 status_font_height;
151 151
152 base::string16 message_font_family_name; 152 base::string16 message_font_family_name;
153 int32 message_font_height; 153 int32 message_font_height;
154 154
155 // Contry iso of the mobile network for content detection purpose. 155 // Contry iso of the mobile network for content detection purpose.
156 std::string network_contry_iso; 156 std::string network_contry_iso;
157
158 // The width of a vertical scroll bar in dips.
jam 2015/04/03 15:08:19 ditto if windows only
ananta 2015/04/03 19:17:04 Put these and the font values above under an if de
159 int32 vertical_scroll_bar_width_in_dips;
160
161 // The height of a horizontal scroll bar in dips.
162 int32 horizontal_scroll_bar_height_in_dips;
163
164 // The height of the arrow bitmap on a vertical scroll bar in dips.
165 int32 arrow_bitmap_height_vertical_scroll_bar_in_dips;
166
167 // The width of the arrow bitmap on a horizontal scroll bar in dips.
168 int32 arrow_bitmap_width_horizontal_scroll_bar_in_dips;
157 }; 169 };
158 170
159 } // namespace content 171 } // namespace content
160 172
161 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 173 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698