| 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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 WebRuntimeFeatures::enableSessionStorage( | 936 WebRuntimeFeatures::enableSessionStorage( |
| 937 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 937 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
| 938 | 938 |
| 939 WebRuntimeFeatures::enableIndexedDatabase( | 939 WebRuntimeFeatures::enableIndexedDatabase( |
| 940 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); | 940 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); |
| 941 | 941 |
| 942 WebRuntimeFeatures::enableGeolocation( | 942 WebRuntimeFeatures::enableGeolocation( |
| 943 !command_line.HasSwitch(switches::kDisableGeolocation)); | 943 !command_line.HasSwitch(switches::kDisableGeolocation)); |
| 944 | 944 |
| 945 WebRuntimeFeatures::enableWebGL( | 945 WebRuntimeFeatures::enableWebGL( |
| 946 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); | 946 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); |
| 947 | 947 |
| 948 WebRuntimeFeatures::enablePushState(true); | 948 WebRuntimeFeatures::enablePushState(true); |
| 949 | 949 |
| 950 WebRuntimeFeatures::enableTouch( | 950 WebRuntimeFeatures::enableTouch( |
| 951 command_line.HasSwitch(switches::kEnableTouch)); | 951 command_line.HasSwitch(switches::kEnableTouch)); |
| 952 | 952 |
| 953 WebRuntimeFeatures::enableDeviceMotion( | 953 WebRuntimeFeatures::enableDeviceMotion( |
| 954 command_line.HasSwitch(switches::kEnableDeviceMotion)); | 954 command_line.HasSwitch(switches::kEnableDeviceMotion)); |
| 955 | 955 |
| 956 WebRuntimeFeatures::enableDeviceOrientation( | 956 WebRuntimeFeatures::enableDeviceOrientation( |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 } | 1144 } |
| 1145 | 1145 |
| 1146 return false; | 1146 return false; |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 void RenderThread::RegisterExtension(v8::Extension* extension, | 1149 void RenderThread::RegisterExtension(v8::Extension* extension, |
| 1150 bool restrict_to_extensions) { | 1150 bool restrict_to_extensions) { |
| 1151 WebScriptController::registerExtension(extension); | 1151 WebScriptController::registerExtension(extension); |
| 1152 v8_extensions_[extension->name()] = restrict_to_extensions; | 1152 v8_extensions_[extension->name()] = restrict_to_extensions; |
| 1153 } | 1153 } |
| OLD | NEW |