OLD | NEW |
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_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 WebRuntimeFeatures::enableCSSExclusions(true); | 764 WebRuntimeFeatures::enableCSSExclusions(true); |
765 WebRuntimeFeatures::enableExperimentalContentSecurityPolicyFeatures(true); | 765 WebRuntimeFeatures::enableExperimentalContentSecurityPolicyFeatures(true); |
766 WebRuntimeFeatures::enableCSSRegions(true); | 766 WebRuntimeFeatures::enableCSSRegions(true); |
767 WebRuntimeFeatures::enableDialogElement(true); | 767 WebRuntimeFeatures::enableDialogElement(true); |
768 WebRuntimeFeatures::enableFontLoadEvents(true); | 768 WebRuntimeFeatures::enableFontLoadEvents(true); |
769 } | 769 } |
770 | 770 |
771 WebRuntimeFeatures::enableSeamlessIFrames( | 771 WebRuntimeFeatures::enableSeamlessIFrames( |
772 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); | 772 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); |
773 | 773 |
| 774 WebRuntimeFeatures::enableWebPInAcceptHeader( |
| 775 command_line.HasSwitch(switches::kEnableWebPInAcceptHeader)); |
| 776 |
774 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 777 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
775 | 778 |
776 devtools_agent_message_filter_ = new DevToolsAgentFilter(); | 779 devtools_agent_message_filter_ = new DevToolsAgentFilter(); |
777 AddFilter(devtools_agent_message_filter_.get()); | 780 AddFilter(devtools_agent_message_filter_.get()); |
778 | 781 |
779 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) | 782 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) |
780 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 783 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
781 } | 784 } |
782 | 785 |
783 void RenderThreadImpl::RegisterSchemes() { | 786 void RenderThreadImpl::RegisterSchemes() { |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 | 1292 |
1290 void RenderThreadImpl::SetFlingCurveParameters( | 1293 void RenderThreadImpl::SetFlingCurveParameters( |
1291 const std::vector<float>& new_touchpad, | 1294 const std::vector<float>& new_touchpad, |
1292 const std::vector<float>& new_touchscreen) { | 1295 const std::vector<float>& new_touchscreen) { |
1293 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1296 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
1294 new_touchscreen); | 1297 new_touchscreen); |
1295 | 1298 |
1296 } | 1299 } |
1297 | 1300 |
1298 } // namespace content | 1301 } // namespace content |
OLD | NEW |