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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
973 #endif | 973 #endif |
974 } | 974 } |
975 | 975 |
976 Send(new ViewMsg_SpellChecker_Init( | 976 Send(new ViewMsg_SpellChecker_Init( |
977 file, | 977 file, |
978 spellcheck_host->custom_words(), | 978 spellcheck_host->custom_words(), |
979 spellcheck_host->language(), | 979 spellcheck_host->language(), |
980 prefs->GetBoolean(prefs::kEnableAutoSpellCorrect))); | 980 prefs->GetBoolean(prefs::kEnableAutoSpellCorrect))); |
981 } else { | 981 } else { |
982 Send(new ViewMsg_SpellChecker_Init( | 982 Send(new ViewMsg_SpellChecker_Init( |
983 IPC::PlatformFileForTransit(), | 983 IPC::InvalidPlatformFileForTransit(), |
huanr
2009/12/18 00:01:40
What does IPC::PlatformFileForTransit() end up bei
Evan Stade
2009/12/18 00:10:07
on windows, this was 0 instead of -1. On Posix it
| |
984 std::vector<std::string>(), | 984 std::vector<std::string>(), |
985 std::string(), | 985 std::string(), |
986 false)); | 986 false)); |
987 } | 987 } |
988 } | 988 } |
989 | 989 |
990 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 990 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
991 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 991 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
992 } | 992 } |
OLD | NEW |