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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 RenderView::ForEach(&setter); | 313 RenderView::ForEach(&setter); |
314 } | 314 } |
315 | 315 |
316 void RenderThread::OnSetZoomLevelForCurrentHost(const std::string& host, | 316 void RenderThread::OnSetZoomLevelForCurrentHost(const std::string& host, |
317 int zoom_level) { | 317 int zoom_level) { |
318 RenderViewZoomer zoomer(host, zoom_level); | 318 RenderViewZoomer zoomer(host, zoom_level); |
319 RenderView::ForEach(&zoomer); | 319 RenderView::ForEach(&zoomer); |
320 } | 320 } |
321 | 321 |
322 void RenderThread::OnUpdateUserScripts( | 322 void RenderThread::OnUpdateUserScripts( |
323 base::SharedMemoryHandle scripts) { | 323 base::SharedMemoryHandle scripts, bool only_inject_incognito) { |
324 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle"; | 324 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle"; |
325 user_script_slave_->UpdateScripts(scripts); | 325 user_script_slave_->UpdateScripts(scripts, only_inject_incognito); |
326 UpdateActiveExtensions(); | 326 UpdateActiveExtensions(); |
327 } | 327 } |
328 | 328 |
329 void RenderThread::OnSetExtensionFunctionNames( | 329 void RenderThread::OnSetExtensionFunctionNames( |
330 const std::vector<std::string>& names) { | 330 const std::vector<std::string>& names) { |
331 ExtensionProcessBindings::SetFunctionNames(names); | 331 ExtensionProcessBindings::SetFunctionNames(names); |
332 } | 332 } |
333 | 333 |
334 void RenderThread::OnPageActionsUpdated( | 334 void RenderThread::OnPageActionsUpdated( |
335 const std::string& extension_id, | 335 const std::string& extension_id, |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); | 770 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); |
771 } | 771 } |
772 | 772 |
773 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { | 773 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { |
774 spellchecker_->WordAdded(word); | 774 spellchecker_->WordAdded(word); |
775 } | 775 } |
776 | 776 |
777 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { | 777 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { |
778 spellchecker_->EnableAutoSpellCorrect(enable); | 778 spellchecker_->EnableAutoSpellCorrect(enable); |
779 } | 779 } |
OLD | NEW |