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 <v8.h> | 7 #include <v8.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 754 |
755 WebRuntimeFeatures::enableApplicationCache( | 755 WebRuntimeFeatures::enableApplicationCache( |
756 !command_line.HasSwitch(switches::kDisableApplicationCache)); | 756 !command_line.HasSwitch(switches::kDisableApplicationCache)); |
757 | 757 |
758 WebRuntimeFeatures::enableNotifications( | 758 WebRuntimeFeatures::enableNotifications( |
759 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); | 759 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); |
760 | 760 |
761 WebRuntimeFeatures::enableLocalStorage( | 761 WebRuntimeFeatures::enableLocalStorage( |
762 !command_line.HasSwitch(switches::kDisableLocalStorage)); | 762 !command_line.HasSwitch(switches::kDisableLocalStorage)); |
763 WebRuntimeFeatures::enableSessionStorage( | 763 WebRuntimeFeatures::enableSessionStorage( |
764 command_line.HasSwitch(switches::kEnableSessionStorage)); | 764 !command_line.HasSwitch(switches::kDisableSessionStorage)); |
765 | 765 |
766 WebRuntimeFeatures::enableIndexedDatabase( | 766 WebRuntimeFeatures::enableIndexedDatabase( |
767 command_line.HasSwitch(switches::kEnableIndexedDatabase)); | 767 command_line.HasSwitch(switches::kEnableIndexedDatabase)); |
768 | 768 |
769 WebRuntimeFeatures::enableGeolocation( | 769 WebRuntimeFeatures::enableGeolocation( |
770 command_line.HasSwitch(switches::kEnableGeolocation)); | 770 command_line.HasSwitch(switches::kEnableGeolocation)); |
771 } | 771 } |
772 | 772 |
773 void RenderThread::IdleHandler() { | 773 void RenderThread::IdleHandler() { |
774 #if defined(OS_WIN) && defined(USE_TCMALLOC) | 774 #if defined(OS_WIN) && defined(USE_TCMALLOC) |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); | 872 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); |
873 } | 873 } |
874 | 874 |
875 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { | 875 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { |
876 spellchecker_->WordAdded(word); | 876 spellchecker_->WordAdded(word); |
877 } | 877 } |
878 | 878 |
879 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { | 879 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { |
880 spellchecker_->EnableAutoSpellCorrect(enable); | 880 spellchecker_->EnableAutoSpellCorrect(enable); |
881 } | 881 } |
OLD | NEW |