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

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

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Reduce number of prepared tiles and correct existing tests. Created 8 years, 3 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
« cc/CCThreadProxy.cpp ('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/WebNetworkStateNotifi er.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 css_variables_enabled(false), 109 css_variables_enabled(false),
110 device_supports_touch(false), 110 device_supports_touch(false),
111 device_supports_mouse(true), 111 device_supports_mouse(true),
112 default_tile_width(256), 112 default_tile_width(256),
113 default_tile_height(256), 113 default_tile_height(256),
114 max_untiled_layer_width(512), 114 max_untiled_layer_width(512),
115 max_untiled_layer_height(512), 115 max_untiled_layer_height(512),
116 fixed_position_creates_stacking_context(false), 116 fixed_position_creates_stacking_context(false),
117 sync_xhr_in_documents_enabled(true), 117 sync_xhr_in_documents_enabled(true),
118 number_of_cpu_cores(1), 118 number_of_cpu_cores(1),
119 cookie_enabled(true) { 119 cookie_enabled(true),
120 apply_page_scale_factor_in_compositor(false) {
120 standard_font_family_map[kCommonScript] = 121 standard_font_family_map[kCommonScript] =
121 ASCIIToUTF16("Times New Roman"); 122 ASCIIToUTF16("Times New Roman");
122 fixed_font_family_map[kCommonScript] = 123 fixed_font_family_map[kCommonScript] =
123 ASCIIToUTF16("Courier New"); 124 ASCIIToUTF16("Courier New");
124 serif_font_family_map[kCommonScript] = 125 serif_font_family_map[kCommonScript] =
125 ASCIIToUTF16("Times New Roman"); 126 ASCIIToUTF16("Times New Roman");
126 sans_serif_font_family_map[kCommonScript] = 127 sans_serif_font_family_map[kCommonScript] =
127 ASCIIToUTF16("Arial"); 128 ASCIIToUTF16("Arial");
128 cursive_font_family_map[kCommonScript] = 129 cursive_font_family_map[kCommonScript] =
129 ASCIIToUTF16("Script"); 130 ASCIIToUTF16("Script");
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 settings); 225 settings);
225 ApplyFontsFromMap(fantasy_font_family_map, setFantasyFontFamilyWrapper, 226 ApplyFontsFromMap(fantasy_font_family_map, setFantasyFontFamilyWrapper,
226 settings); 227 settings);
227 settings->setDefaultFontSize(default_font_size); 228 settings->setDefaultFontSize(default_font_size);
228 settings->setDefaultFixedFontSize(default_fixed_font_size); 229 settings->setDefaultFixedFontSize(default_fixed_font_size);
229 settings->setMinimumFontSize(minimum_font_size); 230 settings->setMinimumFontSize(minimum_font_size);
230 settings->setMinimumLogicalFontSize(minimum_logical_font_size); 231 settings->setMinimumLogicalFontSize(minimum_logical_font_size);
231 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding)); 232 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding));
232 settings->setApplyDefaultDeviceScaleFactorInCompositor( 233 settings->setApplyDefaultDeviceScaleFactorInCompositor(
233 apply_default_device_scale_factor_in_compositor); 234 apply_default_device_scale_factor_in_compositor);
235 settings->setApplyPageScaleFactorInCompositor(
236 apply_page_scale_factor_in_compositor);
234 settings->setJavaScriptEnabled(javascript_enabled); 237 settings->setJavaScriptEnabled(javascript_enabled);
235 settings->setWebSecurityEnabled(web_security_enabled); 238 settings->setWebSecurityEnabled(web_security_enabled);
236 settings->setJavaScriptCanOpenWindowsAutomatically( 239 settings->setJavaScriptCanOpenWindowsAutomatically(
237 javascript_can_open_windows_automatically); 240 javascript_can_open_windows_automatically);
238 settings->setLoadsImagesAutomatically(loads_images_automatically); 241 settings->setLoadsImagesAutomatically(loads_images_automatically);
239 settings->setImagesEnabled(images_enabled); 242 settings->setImagesEnabled(images_enabled);
240 settings->setPluginsEnabled(plugins_enabled); 243 settings->setPluginsEnabled(plugins_enabled);
241 settings->setDOMPasteAllowed(dom_paste_enabled); 244 settings->setDOMPasteAllowed(dom_paste_enabled);
242 settings->setDeveloperExtrasEnabled(developer_extras_enabled); 245 settings->setDeveloperExtrasEnabled(developer_extras_enabled);
243 settings->setNeedsSiteSpecificQuirks(site_specific_quirks_enabled); 246 settings->setNeedsSiteSpecificQuirks(site_specific_quirks_enabled);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 settings->setDeviceSupportsMouse(device_supports_mouse); 407 settings->setDeviceSupportsMouse(device_supports_mouse);
405 408
406 settings->setDefaultTileSize( 409 settings->setDefaultTileSize(
407 WebSize(default_tile_width, default_tile_height)); 410 WebSize(default_tile_width, default_tile_height));
408 settings->setMaxUntiledLayerSize( 411 settings->setMaxUntiledLayerSize(
409 WebSize(max_untiled_layer_width, max_untiled_layer_height)); 412 WebSize(max_untiled_layer_width, max_untiled_layer_height));
410 413
411 settings->setFixedPositionCreatesStackingContext( 414 settings->setFixedPositionCreatesStackingContext(
412 fixed_position_creates_stacking_context); 415 fixed_position_creates_stacking_context);
413 416
417 settings->setApplyPageScaleFactorInCompositor(
418 apply_page_scale_factor_in_compositor);
419
414 WebNetworkStateNotifier::setOnLine(is_online); 420 WebNetworkStateNotifier::setOnLine(is_online);
415 } 421 }
416 422
417 } // namespace webkit_glue 423 } // namespace webkit_glue
OLDNEW
« cc/CCThreadProxy.cpp ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698