OLD | NEW |
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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 WebRuntimeFeatures::enableSessionStorage( | 903 WebRuntimeFeatures::enableSessionStorage( |
904 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 904 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
905 | 905 |
906 WebRuntimeFeatures::enableIndexedDatabase( | 906 WebRuntimeFeatures::enableIndexedDatabase( |
907 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); | 907 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); |
908 | 908 |
909 WebRuntimeFeatures::enableGeolocation( | 909 WebRuntimeFeatures::enableGeolocation( |
910 !command_line.HasSwitch(switches::kDisableGeolocation)); | 910 !command_line.HasSwitch(switches::kDisableGeolocation)); |
911 | 911 |
912 WebRuntimeFeatures::enableWebGL( | 912 WebRuntimeFeatures::enableWebGL( |
913 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); | 913 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); |
914 | 914 |
915 WebRuntimeFeatures::enablePushState(true); | 915 WebRuntimeFeatures::enablePushState(true); |
916 | 916 |
917 WebRuntimeFeatures::enableTouch( | 917 WebRuntimeFeatures::enableTouch( |
918 command_line.HasSwitch(switches::kEnableTouch)); | 918 command_line.HasSwitch(switches::kEnableTouch)); |
919 | 919 |
920 WebRuntimeFeatures::enableDeviceMotion( | 920 WebRuntimeFeatures::enableDeviceMotion( |
921 command_line.HasSwitch(switches::kEnableDeviceMotion)); | 921 command_line.HasSwitch(switches::kEnableDeviceMotion)); |
922 | 922 |
923 WebRuntimeFeatures::enableDeviceOrientation( | 923 WebRuntimeFeatures::enableDeviceOrientation( |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 } | 1099 } |
1100 | 1100 |
1101 return false; | 1101 return false; |
1102 } | 1102 } |
1103 | 1103 |
1104 void RenderThread::RegisterExtension(v8::Extension* extension, | 1104 void RenderThread::RegisterExtension(v8::Extension* extension, |
1105 bool restrict_to_extensions) { | 1105 bool restrict_to_extensions) { |
1106 WebScriptController::registerExtension(extension); | 1106 WebScriptController::registerExtension(extension); |
1107 v8_extensions_[extension->name()] = restrict_to_extensions; | 1107 v8_extensions_[extension->name()] = restrict_to_extensions; |
1108 } | 1108 } |
OLD | NEW |