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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: animationPolicy added to accessibilityFeatures Created 6 years 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 1078
1079 settings->setSelectionIncludesAltImageText(true); 1079 settings->setSelectionIncludesAltImageText(true);
1080 1080
1081 settings->setV8CacheOptions( 1081 settings->setV8CacheOptions(
1082 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); 1082 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options));
1083 1083
1084 settings->setV8ScriptStreamingEnabled(prefs.v8_script_streaming_enabled); 1084 settings->setV8ScriptStreamingEnabled(prefs.v8_script_streaming_enabled);
1085 settings->setV8ScriptStreamingMode( 1085 settings->setV8ScriptStreamingMode(
1086 static_cast<WebSettings::V8ScriptStreamingMode>( 1086 static_cast<WebSettings::V8ScriptStreamingMode>(
1087 prefs.v8_script_streaming_mode)); 1087 prefs.v8_script_streaming_mode));
1088 settings->setImageAnimationPolicy(
1089 static_cast<WebSettings::ImageAnimationPolicy>(prefs.animation_policy));
1088 1090
1089 #if defined(OS_ANDROID) 1091 #if defined(OS_ANDROID)
1090 settings->setAllowCustomScrollbarInMainFrame(false); 1092 settings->setAllowCustomScrollbarInMainFrame(false);
1091 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled); 1093 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled);
1092 settings->setAccessibilityFontScaleFactor(prefs.font_scale_factor); 1094 settings->setAccessibilityFontScaleFactor(prefs.font_scale_factor);
1093 settings->setDeviceScaleAdjustment(prefs.device_scale_adjustment); 1095 settings->setDeviceScaleAdjustment(prefs.device_scale_adjustment);
1094 settings->setFullscreenSupported(prefs.fullscreen_supported); 1096 settings->setFullscreenSupported(prefs.fullscreen_supported);
1095 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom); 1097 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom);
1096 settings->setAutoZoomFocusedNodeToLegibleScale(true); 1098 settings->setAutoZoomFocusedNodeToLegibleScale(true);
1097 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled); 1099 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled);
(...skipping 3028 matching lines...) Expand 10 before | Expand all | Expand 10 after
4126 std::vector<gfx::Size> sizes; 4128 std::vector<gfx::Size> sizes;
4127 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4129 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4128 if (!url.isEmpty()) 4130 if (!url.isEmpty())
4129 urls.push_back( 4131 urls.push_back(
4130 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4132 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4131 } 4133 }
4132 SendUpdateFaviconURL(urls); 4134 SendUpdateFaviconURL(urls);
4133 } 4135 }
4134 4136
4135 } // namespace content 4137 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698