| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 WebRuntimeFeatures::enableSessionStorage( | 911 WebRuntimeFeatures::enableSessionStorage( |
| 912 !command_line.HasSwitch(switches::kDisableSessionStorage)); | 912 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
| 913 | 913 |
| 914 WebRuntimeFeatures::enableIndexedDatabase( | 914 WebRuntimeFeatures::enableIndexedDatabase( |
| 915 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); | 915 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); |
| 916 | 916 |
| 917 WebRuntimeFeatures::enableGeolocation( | 917 WebRuntimeFeatures::enableGeolocation( |
| 918 !command_line.HasSwitch(switches::kDisableGeolocation)); | 918 !command_line.HasSwitch(switches::kDisableGeolocation)); |
| 919 | 919 |
| 920 WebRuntimeFeatures::enableWebGL( | 920 WebRuntimeFeatures::enableWebGL( |
| 921 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); | 921 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); |
| 922 | 922 |
| 923 WebRuntimeFeatures::enablePushState(true); | 923 WebRuntimeFeatures::enablePushState(true); |
| 924 | 924 |
| 925 WebRuntimeFeatures::enableTouch( | 925 WebRuntimeFeatures::enableTouch( |
| 926 command_line.HasSwitch(switches::kEnableTouch)); | 926 command_line.HasSwitch(switches::kEnableTouch)); |
| 927 | 927 |
| 928 WebRuntimeFeatures::enableDeviceMotion( | 928 WebRuntimeFeatures::enableDeviceMotion( |
| 929 command_line.HasSwitch(switches::kEnableDeviceMotion)); | 929 command_line.HasSwitch(switches::kEnableDeviceMotion)); |
| 930 | 930 |
| 931 WebRuntimeFeatures::enableDeviceOrientation( | 931 WebRuntimeFeatures::enableDeviceOrientation( |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 return false; | 1109 return false; |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 void RenderThread::RegisterExtension(v8::Extension* extension, | 1112 void RenderThread::RegisterExtension(v8::Extension* extension, |
| 1113 bool restrict_to_extensions) { | 1113 bool restrict_to_extensions) { |
| 1114 WebScriptController::registerExtension(extension); | 1114 WebScriptController::registerExtension(extension); |
| 1115 v8_extensions_[extension->name()] = restrict_to_extensions; | 1115 v8_extensions_[extension->name()] = restrict_to_extensions; |
| 1116 } | 1116 } |
| OLD | NEW |