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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 6339004: Add run-time enable support for the web audio API... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/common/render_messages.cc ('k') | webkit/glue/webpreferences.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 !command_line.HasSwitch(switches::kDisableLocalStorage)); 922 !command_line.HasSwitch(switches::kDisableLocalStorage));
923 WebRuntimeFeatures::enableSessionStorage( 923 WebRuntimeFeatures::enableSessionStorage(
924 !command_line.HasSwitch(switches::kDisableSessionStorage)); 924 !command_line.HasSwitch(switches::kDisableSessionStorage));
925 925
926 WebRuntimeFeatures::enableIndexedDatabase( 926 WebRuntimeFeatures::enableIndexedDatabase(
927 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 927 !command_line.HasSwitch(switches::kDisableIndexedDatabase));
928 928
929 WebRuntimeFeatures::enableGeolocation( 929 WebRuntimeFeatures::enableGeolocation(
930 !command_line.HasSwitch(switches::kDisableGeolocation)); 930 !command_line.HasSwitch(switches::kDisableGeolocation));
931 931
932 WebRuntimeFeatures::enableWebAudio(
933 command_line.HasSwitch(switches::kEnableWebAudio));
934
932 WebRuntimeFeatures::enableWebGL( 935 WebRuntimeFeatures::enableWebGL(
933 !command_line.HasSwitch(switches::kDisable3DAPIs) && 936 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
934 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); 937 !command_line.HasSwitch(switches::kDisableExperimentalWebGL));
935 938
936 WebRuntimeFeatures::enablePushState(true); 939 WebRuntimeFeatures::enablePushState(true);
937 940
938 WebRuntimeFeatures::enableTouch( 941 WebRuntimeFeatures::enableTouch(
939 command_line.HasSwitch(switches::kEnableTouch)); 942 command_line.HasSwitch(switches::kEnableTouch));
940 943
941 WebRuntimeFeatures::enableDeviceMotion( 944 WebRuntimeFeatures::enableDeviceMotion(
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 } 1130 }
1128 1131
1129 return false; 1132 return false;
1130 } 1133 }
1131 1134
1132 void RenderThread::RegisterExtension(v8::Extension* extension, 1135 void RenderThread::RegisterExtension(v8::Extension* extension,
1133 bool restrict_to_extensions) { 1136 bool restrict_to_extensions) {
1134 WebScriptController::registerExtension(extension); 1137 WebScriptController::registerExtension(extension);
1135 v8_extensions_[extension->name()] = restrict_to_extensions; 1138 v8_extensions_[extension->name()] = restrict_to_extensions;
1136 } 1139 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698