| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 WebRuntimeFeatures::enableSockets( | 561 WebRuntimeFeatures::enableSockets( |
| 562 !command_line.HasSwitch(switches::kDisableWebSockets)); | 562 !command_line.HasSwitch(switches::kDisableWebSockets)); |
| 563 | 563 |
| 564 WebRuntimeFeatures::enableDatabase( | 564 WebRuntimeFeatures::enableDatabase( |
| 565 command_line.HasSwitch(switches::kEnableDatabases)); | 565 command_line.HasSwitch(switches::kEnableDatabases)); |
| 566 | 566 |
| 567 WebRuntimeFeatures::enableApplicationCache( | 567 WebRuntimeFeatures::enableApplicationCache( |
| 568 command_line.HasSwitch(switches::kEnableApplicationCache)); | 568 command_line.HasSwitch(switches::kEnableApplicationCache)); |
| 569 | 569 |
| 570 #if defined(OS_WIN) | 570 #if defined(OS_WIN) |
| 571 // We don't yet support notifications on non-Windows, so hide it from pages. | 571 // We don't yet support notifications on non-Windows. |
| 572 WebRuntimeFeatures::enableNotifications( | 572 WebRuntimeFeatures::enableNotifications( |
| 573 command_line.HasSwitch(switches::kEnableDesktopNotifications)); | 573 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); |
| 574 #endif | 574 #endif |
| 575 | 575 |
| 576 WebRuntimeFeatures::enableLocalStorage( | 576 WebRuntimeFeatures::enableLocalStorage( |
| 577 !command_line.HasSwitch(switches::kDisableLocalStorage)); | 577 !command_line.HasSwitch(switches::kDisableLocalStorage)); |
| 578 WebRuntimeFeatures::enableSessionStorage( | 578 WebRuntimeFeatures::enableSessionStorage( |
| 579 command_line.HasSwitch(switches::kEnableSessionStorage)); | 579 command_line.HasSwitch(switches::kEnableSessionStorage)); |
| 580 } | 580 } |
| 581 | 581 |
| 582 void RenderThread::IdleHandler() { | 582 void RenderThread::IdleHandler() { |
| 583 // It is possible that the timer was set while the widgets were idle, | 583 // It is possible that the timer was set while the widgets were idle, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 671 } |
| 672 | 672 |
| 673 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { | 673 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { |
| 674 spellchecker_->WordAdded(word); | 674 spellchecker_->WordAdded(word); |
| 675 } | 675 } |
| 676 | 676 |
| 677 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { | 677 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { |
| 678 spellchecker_->EnableAutoSpellCorrect(enable); | 678 spellchecker_->EnableAutoSpellCorrect(enable); |
| 679 } | 679 } |
| 680 #endif | 680 #endif |
| OLD | NEW |