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

Side by Side 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: 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 #include "content/public/common/renderer_preferences.h" 5 #include "content/public/common/renderer_preferences.h"
6 6
7 #include "third_party/skia/include/core/SkColor.h" 7 #include "third_party/skia/include/core/SkColor.h"
8 #include "ui/gfx/font_render_params.h" 8 #include "ui/gfx/font_render_params.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 25 matching lines...) Expand all
36 report_frame_name_changes(false), 36 report_frame_name_changes(false),
37 tap_multiple_targets_strategy(TAP_MULTIPLE_TARGETS_STRATEGY_POPUP), 37 tap_multiple_targets_strategy(TAP_MULTIPLE_TARGETS_STRATEGY_POPUP),
38 disable_client_blocked_error_page(false), 38 disable_client_blocked_error_page(false),
39 plugin_fullscreen_allowed(true), 39 plugin_fullscreen_allowed(true),
40 use_video_overlay_for_embedded_encrypted_video(false), 40 use_video_overlay_for_embedded_encrypted_video(false),
41 use_view_overlay_for_all_video(false), 41 use_view_overlay_for_all_video(false),
42 caption_font_height(0), 42 caption_font_height(0),
43 small_caption_font_height(0), 43 small_caption_font_height(0),
44 menu_font_height(0), 44 menu_font_height(0),
45 status_font_height(0), 45 status_font_height(0),
46 message_font_height(0) { 46 message_font_height(0),
47 vertical_scroll_bar_width_in_dips(0),
48 horizontal_scroll_bar_height_in_dips(0),
49 arrow_bitmap_height_vertical_scroll_bar_in_dips(0),
50 arrow_bitmap_width_horizontal_scroll_bar_in_dips(0) {
brucedawson 2015/04/03 17:00:24 This would be cleaner if we initialized these when
47 } 51 }
48 52
49 RendererPreferences::~RendererPreferences() { } 53 RendererPreferences::~RendererPreferences() { }
50 54
51 } // namespace content 55 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698