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

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

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Simplify Mojo binding based on rockot@'s advice Created 3 years, 5 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.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index d3fafe5c3eb96a70c77ecde2e0652251001dd5a3..0fb97490590647dc9e3530030078f0b67689a9bb 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -44,6 +44,7 @@
#include "core/editing/InputMethodController.h"
#include "core/editing/serializers/Serialization.h"
#include "core/editing/spellcheck/SpellChecker.h"
+#include "core/editing/suggestion/TextSuggestionController.h"
#include "core/events/Event.h"
#include "core/frame/ContentSettingsClient.h"
#include "core/frame/EventHandlerRegistry.h"
@@ -222,6 +223,7 @@ DEFINE_TRACE(LocalFrame) {
visitor->Trace(console_);
visitor->Trace(input_method_controller_);
visitor->Trace(frame_resource_coordinator_);
+ visitor->Trace(text_suggestion_controller_);
Frame::Trace(visitor);
Supplementable<LocalFrame>::Trace(visitor);
}
@@ -384,6 +386,7 @@ void LocalFrame::DocumentAttached() {
Selection().DocumentAttached(GetDocument());
GetInputMethodController().DocumentAttached(GetDocument());
GetSpellChecker().DocumentAttached(GetDocument());
+ GetTextSuggestionController().DocumentAttached(GetDocument());
}
Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name,
@@ -744,6 +747,7 @@ inline LocalFrame::LocalFrame(LocalFrameClient* client,
event_handler_(new EventHandler(*this)),
console_(FrameConsole::Create(*this)),
input_method_controller_(InputMethodController::Create(*this)),
+ text_suggestion_controller_(new TextSuggestionController(*this)),
navigation_disable_count_(0),
page_zoom_factor_(ParentPageZoomFactor(this)),
text_zoom_factor_(ParentTextZoomFactor(this)),
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/modules/ModulesInitializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698