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

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: Rebaselined to 160422. Created 8 years, 2 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 | « 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 css_variables_enabled(false), 113 css_variables_enabled(false),
114 device_supports_touch(false), 114 device_supports_touch(false),
115 device_supports_mouse(true), 115 device_supports_mouse(true),
116 default_tile_width(256), 116 default_tile_width(256),
117 default_tile_height(256), 117 default_tile_height(256),
118 max_untiled_layer_width(512), 118 max_untiled_layer_width(512),
119 max_untiled_layer_height(512), 119 max_untiled_layer_height(512),
120 fixed_position_creates_stacking_context(false), 120 fixed_position_creates_stacking_context(false),
121 sync_xhr_in_documents_enabled(true), 121 sync_xhr_in_documents_enabled(true),
122 number_of_cpu_cores(1), 122 number_of_cpu_cores(1),
123 cookie_enabled(true) { 123 cookie_enabled(true),
124 apply_page_scale_factor_in_compositor(false) {
124 standard_font_family_map[kCommonScript] = 125 standard_font_family_map[kCommonScript] =
125 ASCIIToUTF16("Times New Roman"); 126 ASCIIToUTF16("Times New Roman");
126 fixed_font_family_map[kCommonScript] = 127 fixed_font_family_map[kCommonScript] =
127 ASCIIToUTF16("Courier New"); 128 ASCIIToUTF16("Courier New");
128 serif_font_family_map[kCommonScript] = 129 serif_font_family_map[kCommonScript] =
129 ASCIIToUTF16("Times New Roman"); 130 ASCIIToUTF16("Times New Roman");
130 sans_serif_font_family_map[kCommonScript] = 131 sans_serif_font_family_map[kCommonScript] =
131 ASCIIToUTF16("Arial"); 132 ASCIIToUTF16("Arial");
132 cursive_font_family_map[kCommonScript] = 133 cursive_font_family_map[kCommonScript] =
133 ASCIIToUTF16("Script"); 134 ASCIIToUTF16("Script");
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 settings); 243 settings);
243 ApplyFontsFromMap(pictograph_font_family_map, setPictographFontFamilyWrapper, 244 ApplyFontsFromMap(pictograph_font_family_map, setPictographFontFamilyWrapper,
244 settings); 245 settings);
245 settings->setDefaultFontSize(default_font_size); 246 settings->setDefaultFontSize(default_font_size);
246 settings->setDefaultFixedFontSize(default_fixed_font_size); 247 settings->setDefaultFixedFontSize(default_fixed_font_size);
247 settings->setMinimumFontSize(minimum_font_size); 248 settings->setMinimumFontSize(minimum_font_size);
248 settings->setMinimumLogicalFontSize(minimum_logical_font_size); 249 settings->setMinimumLogicalFontSize(minimum_logical_font_size);
249 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding)); 250 settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding));
250 settings->setApplyDefaultDeviceScaleFactorInCompositor( 251 settings->setApplyDefaultDeviceScaleFactorInCompositor(
251 apply_default_device_scale_factor_in_compositor); 252 apply_default_device_scale_factor_in_compositor);
253 settings->setApplyPageScaleFactorInCompositor(
254 apply_page_scale_factor_in_compositor);
252 settings->setJavaScriptEnabled(javascript_enabled); 255 settings->setJavaScriptEnabled(javascript_enabled);
253 settings->setWebSecurityEnabled(web_security_enabled); 256 settings->setWebSecurityEnabled(web_security_enabled);
254 settings->setJavaScriptCanOpenWindowsAutomatically( 257 settings->setJavaScriptCanOpenWindowsAutomatically(
255 javascript_can_open_windows_automatically); 258 javascript_can_open_windows_automatically);
256 settings->setLoadsImagesAutomatically(loads_images_automatically); 259 settings->setLoadsImagesAutomatically(loads_images_automatically);
257 settings->setImagesEnabled(images_enabled); 260 settings->setImagesEnabled(images_enabled);
258 settings->setPluginsEnabled(plugins_enabled); 261 settings->setPluginsEnabled(plugins_enabled);
259 settings->setDOMPasteAllowed(dom_paste_enabled); 262 settings->setDOMPasteAllowed(dom_paste_enabled);
260 settings->setDeveloperExtrasEnabled(developer_extras_enabled); 263 settings->setDeveloperExtrasEnabled(developer_extras_enabled);
261 settings->setNeedsSiteSpecificQuirks(site_specific_quirks_enabled); 264 settings->setNeedsSiteSpecificQuirks(site_specific_quirks_enabled);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 settings->setDeviceSupportsMouse(device_supports_mouse); 429 settings->setDeviceSupportsMouse(device_supports_mouse);
427 430
428 settings->setDefaultTileSize( 431 settings->setDefaultTileSize(
429 WebSize(default_tile_width, default_tile_height)); 432 WebSize(default_tile_width, default_tile_height));
430 settings->setMaxUntiledLayerSize( 433 settings->setMaxUntiledLayerSize(
431 WebSize(max_untiled_layer_width, max_untiled_layer_height)); 434 WebSize(max_untiled_layer_width, max_untiled_layer_height));
432 435
433 settings->setFixedPositionCreatesStackingContext( 436 settings->setFixedPositionCreatesStackingContext(
434 fixed_position_creates_stacking_context); 437 fixed_position_creates_stacking_context);
435 438
439 settings->setApplyPageScaleFactorInCompositor(
440 apply_page_scale_factor_in_compositor);
441
436 WebNetworkStateNotifier::setOnLine(is_online); 442 WebNetworkStateNotifier::setOnLine(is_online);
437 } 443 }
438 444
439 } // namespace webkit_glue 445 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698