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

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 10454019: Unset the page-scale-factor limits if enable-pinch flag is turned on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« webkit/glue/webpreferences.h ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/glue/webpreferences.h" 5 #include "webkit/glue/webpreferences.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 should_print_backgrounds(false), 103 should_print_backgrounds(false),
104 enable_scroll_animator(false), 104 enable_scroll_animator(false),
105 hixie76_websocket_protocol_enabled(false), 105 hixie76_websocket_protocol_enabled(false),
106 visual_word_movement_enabled(false), 106 visual_word_movement_enabled(false),
107 per_tile_painting_enabled(false), 107 per_tile_painting_enabled(false),
108 css_regions_enabled(false), 108 css_regions_enabled(false),
109 css_shaders_enabled(false), 109 css_shaders_enabled(false),
110 default_tile_width(256), 110 default_tile_width(256),
111 default_tile_height(256), 111 default_tile_height(256),
112 max_untiled_layer_width(512), 112 max_untiled_layer_width(512),
113 max_untiled_layer_height(512) { 113 max_untiled_layer_height(512),
114 force_enable_page_scale(false) {
114 standard_font_family_map[kCommonScript] = 115 standard_font_family_map[kCommonScript] =
115 ASCIIToUTF16("Times New Roman"); 116 ASCIIToUTF16("Times New Roman");
116 fixed_font_family_map[kCommonScript] = 117 fixed_font_family_map[kCommonScript] =
117 ASCIIToUTF16("Courier New"); 118 ASCIIToUTF16("Courier New");
118 serif_font_family_map[kCommonScript] = 119 serif_font_family_map[kCommonScript] =
119 ASCIIToUTF16("Times New Roman"); 120 ASCIIToUTF16("Times New Roman");
120 sans_serif_font_family_map[kCommonScript] = 121 sans_serif_font_family_map[kCommonScript] =
121 ASCIIToUTF16("Arial"); 122 ASCIIToUTF16("Arial");
122 cursive_font_family_map[kCommonScript] = 123 cursive_font_family_map[kCommonScript] =
123 ASCIIToUTF16("Script"); 124 ASCIIToUTF16("Script");
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 settings); 193 settings);
193 ApplyFontsFromMap(cursive_font_family_map, setCursiveFontFamilyWrapper, 194 ApplyFontsFromMap(cursive_font_family_map, setCursiveFontFamilyWrapper,
194 settings); 195 settings);
195 ApplyFontsFromMap(fantasy_font_family_map, setFantasyFontFamilyWrapper, 196 ApplyFontsFromMap(fantasy_font_family_map, setFantasyFontFamilyWrapper,
196 settings); 197 settings);
197 settings->setDefaultFontSize(default_font_size); 198 settings->setDefaultFontSize(default_font_size);
198 settings->setDefaultFixedFontSize(default_fixed_font_size); 199 settings->setDefaultFixedFontSize(default_fixed_font_size);
199 settings->setMinimumFontSize(minimum_font_size); 200 settings->setMinimumFontSize(minimum_font_size);
200 settings->setMinimumLogicalFontSize(minimum_logical_font_size); 201 settings->setMinimumLogicalFontSize(minimum_logical_font_size);
201 settings->setDefaultDeviceScaleFactor(default_device_scale_factor); 202 settings->setDefaultDeviceScaleFactor(default_device_scale_factor);
203 settings->setForceEnablePageScaleFactor(force_enable_page_scale);
202 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding)); 204 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding));
203 settings->setApplyDefaultDeviceScaleFactorInCompositor( 205 settings->setApplyDefaultDeviceScaleFactorInCompositor(
204 apply_default_device_scale_factor_in_compositor); 206 apply_default_device_scale_factor_in_compositor);
205 settings->setJavaScriptEnabled(javascript_enabled); 207 settings->setJavaScriptEnabled(javascript_enabled);
206 settings->setWebSecurityEnabled(web_security_enabled); 208 settings->setWebSecurityEnabled(web_security_enabled);
207 settings->setJavaScriptCanOpenWindowsAutomatically( 209 settings->setJavaScriptCanOpenWindowsAutomatically(
208 javascript_can_open_windows_automatically); 210 javascript_can_open_windows_automatically);
209 settings->setLoadsImagesAutomatically(loads_images_automatically); 211 settings->setLoadsImagesAutomatically(loads_images_automatically);
210 settings->setImagesEnabled(images_enabled); 212 settings->setImagesEnabled(images_enabled);
211 settings->setPluginsEnabled(plugins_enabled); 213 settings->setPluginsEnabled(plugins_enabled);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 372
371 settings->setDefaultTileSize( 373 settings->setDefaultTileSize(
372 WebSize(default_tile_width, default_tile_height)); 374 WebSize(default_tile_width, default_tile_height));
373 settings->setMaxUntiledLayerSize( 375 settings->setMaxUntiledLayerSize(
374 WebSize(max_untiled_layer_width, max_untiled_layer_height)); 376 WebSize(max_untiled_layer_width, max_untiled_layer_height));
375 377
376 WebNetworkStateNotifier::setOnLine(is_online); 378 WebNetworkStateNotifier::setOnLine(is_online);
377 } 379 }
378 380
379 } // namespace webkit_glue 381 } // namespace webkit_glue
OLDNEW
« webkit/glue/webpreferences.h ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698