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

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

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Fix android build 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
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 // Enabled by default for testing. 791 // Enabled by default for testing.
792 // TODO(urvang): Go back to using the command-line option after a few days. 792 // TODO(urvang): Go back to using the command-line option after a few days.
793 WebRuntimeFeatures::enableWebPInAcceptHeader(true); 793 WebRuntimeFeatures::enableWebPInAcceptHeader(true);
794 794
795 WebRuntimeFeatures::enableExperimentalWebSocket( 795 WebRuntimeFeatures::enableExperimentalWebSocket(
796 command_line.HasSwitch(switches::kEnableExperimentalWebSocket)); 796 command_line.HasSwitch(switches::kEnableExperimentalWebSocket));
797 797
798 WebRuntimeFeatures::enableExperimentalCanvasFeatures( 798 WebRuntimeFeatures::enableExperimentalCanvasFeatures(
799 command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)); 799 command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures));
800 800
801 WebRuntimeFeatures::enableSpeechSynthesis(
802 command_line.HasSwitch(switches::kEnableSpeechSynthesis));
803
801 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); 804 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
802 805
803 devtools_agent_message_filter_ = new DevToolsAgentFilter(); 806 devtools_agent_message_filter_ = new DevToolsAgentFilter();
804 AddFilter(devtools_agent_message_filter_.get()); 807 AddFilter(devtools_agent_message_filter_.get());
805 808
806 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) 809 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden())
807 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 810 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
808 } 811 }
809 812
810 void RenderThreadImpl::RegisterSchemes() { 813 void RenderThreadImpl::RegisterSchemes() {
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1319
1317 void RenderThreadImpl::SetFlingCurveParameters( 1320 void RenderThreadImpl::SetFlingCurveParameters(
1318 const std::vector<float>& new_touchpad, 1321 const std::vector<float>& new_touchpad,
1319 const std::vector<float>& new_touchscreen) { 1322 const std::vector<float>& new_touchscreen) {
1320 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1323 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1321 new_touchscreen); 1324 new_touchscreen);
1322 1325
1323 } 1326 }
1324 1327
1325 } // namespace content 1328 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698