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

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

Issue 14643005: Add the "experimental canvas features" flag, and plumb it through to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/public/common/content_switches.cc ('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 "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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 WebRuntimeFeatures::enableSeamlessIFrames( 789 WebRuntimeFeatures::enableSeamlessIFrames(
790 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); 790 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
791 791
792 // Enabled by default for testing. 792 // Enabled by default for testing.
793 // TODO(urvang): Go back to using the command-line option after a few days. 793 // TODO(urvang): Go back to using the command-line option after a few days.
794 WebRuntimeFeatures::enableWebPInAcceptHeader(true); 794 WebRuntimeFeatures::enableWebPInAcceptHeader(true);
795 795
796 WebRuntimeFeatures::enableExperimentalWebSocket( 796 WebRuntimeFeatures::enableExperimentalWebSocket(
797 command_line.HasSwitch(switches::kEnableExperimentalWebSocket)); 797 command_line.HasSwitch(switches::kEnableExperimentalWebSocket));
798 798
799 WebRuntimeFeatures::enableExperimentalCanvasFeatures(
800 command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures));
801
799 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); 802 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
800 803
801 devtools_agent_message_filter_ = new DevToolsAgentFilter(); 804 devtools_agent_message_filter_ = new DevToolsAgentFilter();
802 AddFilter(devtools_agent_message_filter_.get()); 805 AddFilter(devtools_agent_message_filter_.get());
803 806
804 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) 807 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden())
805 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 808 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
806 } 809 }
807 810
808 void RenderThreadImpl::RegisterSchemes() { 811 void RenderThreadImpl::RegisterSchemes() {
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 1317
1315 void RenderThreadImpl::SetFlingCurveParameters( 1318 void RenderThreadImpl::SetFlingCurveParameters(
1316 const std::vector<float>& new_touchpad, 1319 const std::vector<float>& new_touchpad,
1317 const std::vector<float>& new_touchscreen) { 1320 const std::vector<float>& new_touchscreen) {
1318 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1321 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1319 new_touchscreen); 1322 new_touchscreen);
1320 1323
1321 } 1324 }
1322 1325
1323 } // namespace content 1326 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698