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

Side by Side Diff: content/public/common/web_preferences.cc

Issue 418883002: Simplify wrap_contents mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 font_scale_factor(1.0f), 136 font_scale_factor(1.0f),
137 device_scale_adjustment(1.0f), 137 device_scale_adjustment(1.0f),
138 force_enable_zoom(false), 138 force_enable_zoom(false),
139 disallow_fullscreen_for_non_media_elements(false), 139 disallow_fullscreen_for_non_media_elements(false),
140 double_tap_to_zoom_enabled(true), 140 double_tap_to_zoom_enabled(true),
141 user_gesture_required_for_media_playback(true), 141 user_gesture_required_for_media_playback(true),
142 support_deprecated_target_density_dpi(false), 142 support_deprecated_target_density_dpi(false),
143 use_legacy_background_size_shorthand_behavior(false), 143 use_legacy_background_size_shorthand_behavior(false),
144 wide_viewport_quirk(false), 144 wide_viewport_quirk(false),
145 use_wide_viewport(true), 145 use_wide_viewport(true),
146 force_zero_layout_height(false),
146 viewport_meta_layout_size_quirk(false), 147 viewport_meta_layout_size_quirk(false),
147 viewport_meta_merge_content_quirk(false), 148 viewport_meta_merge_content_quirk(false),
148 viewport_meta_non_user_scalable_quirk(false), 149 viewport_meta_non_user_scalable_quirk(false),
149 viewport_meta_zero_values_quirk(false), 150 viewport_meta_zero_values_quirk(false),
150 clobber_user_agent_initial_scale_quirk(false), 151 clobber_user_agent_initial_scale_quirk(false),
151 ignore_main_frame_overflow_hidden_quirk(false), 152 ignore_main_frame_overflow_hidden_quirk(false),
152 report_screen_size_in_physical_pixels_quirk(false) 153 report_screen_size_in_physical_pixels_quirk(false)
153 #endif 154 #endif
154 { 155 {
155 standard_font_family_map[kCommonScript] = 156 standard_font_family_map[kCommonScript] =
156 base::ASCIIToUTF16("Times New Roman"); 157 base::ASCIIToUTF16("Times New Roman");
157 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); 158 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");
158 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); 159 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman");
159 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); 160 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial");
160 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 161 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
161 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 162 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
162 pictograph_font_family_map[kCommonScript] = 163 pictograph_font_family_map[kCommonScript] =
163 base::ASCIIToUTF16("Times New Roman"); 164 base::ASCIIToUTF16("Times New Roman");
164 } 165 }
165 166
166 WebPreferences::~WebPreferences() { 167 WebPreferences::~WebPreferences() {
167 } 168 }
168 169
169 } // namespace content 170 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698