blob: 92c25586fa4032d87acd072e2bc13e04f5a9aa66 [file]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/ime/input_method_delegate.h"
#include "base/callback.h"
#include "ui/base/ime/mojo/ime.mojom.h"
#include "ui/events/event.h"
namespace ui {
namespace internal {
bool InputMethodDelegate::ConnectToImeEngine(
::ime::mojom::ImeEngineRequest engine_request,
::ime::mojom::ImeEngineClientPtr client) {
return false;
}
// static
void InputMethodDelegate::RunDispatchKeyEventPostIMECallback(
KeyEvent* key_event,
DispatchKeyEventPostIMECallback callback) {
if (!callback)
return;
std::move(callback).Run(key_event->handled(),
key_event->stopped_propagation());
}
} // namespace internal
} // namespace ui