Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Expose missing spell checking interface #301

Merged
merged 2 commits into from
Sep 10, 2017
Merged

Conversation

hferreiro
Copy link
Contributor

@hferreiro hferreiro commented Sep 8, 2017

This should fix brave/browser-laptop#10849. Tested on Linux and Windows.

@hferreiro hferreiro requested a review from bridiver September 8, 2017 11:09
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::UI);
#if BUILDFLAG(ENABLE_SPELLCHECK)
registry->AddInterface(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's odd, I noticed this when reviewing and I thought I saw it in the final PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are still missing

+#if BUILDFLAG(HAS_SPELLCHECK_PANEL)
+    registry->AddInterface(base::Bind(&SpellCheckPanelHostImpl::Create),
+                           ui_task_runner);
+#endif

see 08fdafe21e81711142065b8251af2e5ecd268707

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is HAS_SPELLCHECK_PANEL ? are you sure that's something we need?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an MacOS feature and chromium uses it as a spell-correction aid for contentEditable,
and <textarea>, and designMode document content that has the
focus on the current web page.
We new a instance of SpellCheckPanel in our BraveContentRendererClient

bridiver
bridiver previously approved these changes Sep 8, 2017
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::UI);
#if BUILDFLAG(ENABLE_SPELLCHECK)
registry->AddInterface(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are still missing

+#if BUILDFLAG(HAS_SPELLCHECK_PANEL)
+    registry->AddInterface(base::Bind(&SpellCheckPanelHostImpl::Create),
+                           ui_task_runner);
+#endif

see 08fdafe21e81711142065b8251af2e5ecd268707

@bridiver bridiver merged commit 3ff7837 into master Sep 10, 2017
Copy link
Member

@darkdh darkdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

bridiver added a commit that referenced this pull request Sep 10, 2017
Expose missing spell checking interface
bridiver added a commit that referenced this pull request Sep 10, 2017
Expose missing spell checking interface
@@ -243,6 +243,10 @@ void BraveContentBrowserClient::ExposeInterfacesToRenderer(
base::Bind(&SpellCheckHostImpl::Create, render_process_host->GetID()),
ui_task_runner);
#endif
#if BUILDFLAG(HAS_SPELLCHECK_PANEL)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bridiver I believe this should be enclosed in the previous define (ENABLE_SPELLCHECK).

@bsclifton bsclifton deleted the fix/v61-spell-check branch June 18, 2018 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spell Check fails on Windows
3 participants