Disabled CEF's built-in spell checker.

It's unnecessary, and LOOT disables the context menu anyway.
This commit is contained in:
Oliver Hamlet
2014-11-06 15:25:52 +00:00
parent 902704c4c1
commit 46bbab0c95
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -57,6 +57,16 @@ namespace loot {
LootApp::LootApp() {}
void LootApp::OnBeforeCommandLineProcessing(const CefString& process_type,
CefRefPtr<CefCommandLine> command_line) {
if (process_type.empty()) {
// Browser process, OK to modify the command line.
// Disable spell checking.
command_line->AppendSwitch("--disable-spell-checking");
}
}
CefRefPtr<CefBrowserProcessHandler> LootApp::GetBrowserProcessHandler() {
return this;
}
+2
View File
@@ -41,6 +41,8 @@ namespace loot {
LootApp();
// Override CefApp methods.
virtual void OnBeforeCommandLineProcessing(const CefString& process_type,
CefRefPtr<CefCommandLine> command_line);
virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() OVERRIDE;
virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() OVERRIDE;
virtual void OnRegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE;