Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 66f54b2415b936520205de13f0ff2871e5f23865..63c678b609fec7c3cc3370324eb694f950fee8e5 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -80,6 +80,7 @@ class PositionWithAffinityTemplate;
class PluginData;
class ScriptController;
class SpellChecker;
+class TextSuggestionController;
class WebFrameScheduler;
class WebPluginContainerBase;
class WebURLLoader;
@@ -152,6 +153,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
NavigationScheduler& GetNavigationScheduler() const;
FrameSelection& Selection() const;
InputMethodController& GetInputMethodController() const;
+ TextSuggestionController& GetTextSuggestionController() const;
ScriptController& GetScriptController() const;
SpellChecker& GetSpellChecker() const;
FrameConsole& Console() const;
@@ -301,6 +303,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
const Member<EventHandler> event_handler_;
const Member<FrameConsole> console_;
const Member<InputMethodController> input_method_controller_;
+ const Member<TextSuggestionController> text_suggestion_controller_;
int navigation_disable_count_;
@@ -355,6 +358,11 @@ inline InputMethodController& LocalFrame::GetInputMethodController() const {
return *input_method_controller_;
}
+inline TextSuggestionController& LocalFrame::GetTextSuggestionController()
+ const {
+ return *text_suggestion_controller_;
+}
+
inline bool LocalFrame::InViewSourceMode() const {
return in_view_source_mode_;
}

Powered by Google App Engine
This is Rietveld 408576698