OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 466 |
467 WebRuntimeFeatures::enableIndexedDatabase( | 467 WebRuntimeFeatures::enableIndexedDatabase( |
468 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); | 468 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); |
469 | 469 |
470 WebRuntimeFeatures::enableGeolocation( | 470 WebRuntimeFeatures::enableGeolocation( |
471 !command_line.HasSwitch(switches::kDisableGeolocation)); | 471 !command_line.HasSwitch(switches::kDisableGeolocation)); |
472 | 472 |
473 WebKit::WebRuntimeFeatures::enableMediaStream( | 473 WebKit::WebRuntimeFeatures::enableMediaStream( |
474 command_line.HasSwitch(switches::kEnableMediaStream)); | 474 command_line.HasSwitch(switches::kEnableMediaStream)); |
475 | 475 |
| 476 WebKit::WebRuntimeFeatures::enableFullScreenAPI( |
| 477 command_line.HasSwitch(switches::kEnableFullScreen)); |
| 478 |
476 #if defined(OS_CHROMEOS) | 479 #if defined(OS_CHROMEOS) |
477 // TODO(crogers): enable once Web Audio has been tested and optimized. | 480 // TODO(crogers): enable once Web Audio has been tested and optimized. |
478 WebRuntimeFeatures::enableWebAudio(false); | 481 WebRuntimeFeatures::enableWebAudio(false); |
479 #else | 482 #else |
480 WebRuntimeFeatures::enableWebAudio( | 483 WebRuntimeFeatures::enableWebAudio( |
481 !command_line.HasSwitch(switches::kDisableWebAudio)); | 484 !command_line.HasSwitch(switches::kDisableWebAudio)); |
482 #endif | 485 #endif |
483 | 486 |
484 WebRuntimeFeatures::enablePushState(true); | 487 WebRuntimeFeatures::enablePushState(true); |
485 | 488 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 721 |
719 void RenderThread::RegisterExtension(v8::Extension* extension) { | 722 void RenderThread::RegisterExtension(v8::Extension* extension) { |
720 WebScriptController::registerExtension(extension); | 723 WebScriptController::registerExtension(extension); |
721 v8_extensions_.insert(extension->name()); | 724 v8_extensions_.insert(extension->name()); |
722 } | 725 } |
723 | 726 |
724 bool RenderThread::IsRegisteredExtension( | 727 bool RenderThread::IsRegisteredExtension( |
725 const std::string& v8_extension_name) const { | 728 const std::string& v8_extension_name) const { |
726 return v8_extensions_.find(v8_extension_name) != v8_extensions_.end(); | 729 return v8_extensions_.find(v8_extension_name) != v8_extensions_.end(); |
727 } | 730 } |
OLD | NEW |