提交 88c24a6c 编写于 作者: J Jêrôme Poichet 提交者: GitHub

Updating to take into account the new Mozart IME Action API (#3714)

上级 75c74dc4
......@@ -405,8 +405,8 @@ bool RuntimeHolder::HandleTextInputPlatformMessage(
state->selection = mozart::TextSelection::New();
state->composing = mozart::TextRange::New();
input_connection_->GetInputMethodEditor(
mozart::KeyboardType::TEXT, std::move(state),
text_input_binding_.NewBinding(),
mozart::KeyboardType::TEXT, mozart::InputMethodAction::DONE,
std::move(state), text_input_binding_.NewBinding(),
fidl::GetProxy(&input_method_editor_));
} else if (method->value == "TextInput.setEditingState") {
if (input_method_editor_) {
......@@ -624,6 +624,10 @@ void RuntimeHolder::DidUpdateState(mozart::TextInputStatePtr state,
nullptr));
}
void RuntimeHolder::OnAction(mozart::InputMethodAction action) {
// TODO
}
ftl::WeakPtr<RuntimeHolder> RuntimeHolder::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}
......
......@@ -72,6 +72,7 @@ class RuntimeHolder : public blink::RuntimeDelegate,
// |mozart::InputMethodEditorClient| implementation:
void DidUpdateState(mozart::TextInputStatePtr state,
mozart::InputEventPtr event) override;
void OnAction(mozart::InputMethodAction action) override;
ftl::WeakPtr<RuntimeHolder> GetWeakPtr();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册