diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/spellcheck/renderer/spellcheck_provider.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/spellcheck/renderer/spellcheck_provider.h')
-rw-r--r-- | chromium/components/spellcheck/renderer/spellcheck_provider.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/components/spellcheck/renderer/spellcheck_provider.h b/chromium/components/spellcheck/renderer/spellcheck_provider.h index 8e852264682..43e6dd2a46b 100644 --- a/chromium/components/spellcheck/renderer/spellcheck_provider.h +++ b/chromium/components/spellcheck/renderer/spellcheck_provider.h @@ -18,9 +18,9 @@ #include "mojo/public/cpp/bindings/remote.h" #include "third_party/blink/public/web/web_text_check_client.h" -#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) #include <unordered_map> -#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) class SpellCheck; struct SpellCheckResult; @@ -46,14 +46,14 @@ class SpellCheckProvider : public content::RenderFrameObserver, using WebTextCheckCompletions = base::IDMap<std::unique_ptr<blink::WebTextCheckingCompletion>>; -#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) // A struct to hold information related to hybrid spell check requests. struct HybridSpellCheckRequestInfo { bool used_hunspell; bool used_native; base::TimeTicks request_start_ticks; }; -#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) SpellCheckProvider( content::RenderFrame* render_frame, @@ -155,9 +155,9 @@ class SpellCheckProvider : public content::RenderFrameObserver, // Dictionary updated observer. std::unique_ptr<DictionaryUpdateObserverImpl> dictionary_update_observer_; -#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) std::unordered_map<int, HybridSpellCheckRequestInfo> hybrid_requests_info_; -#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER) +#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) base::WeakPtrFactory<SpellCheckProvider> weak_factory_{this}; |