blob: 8b93b12f80b5b65186065aa81b966b5bdb70179f [file]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/ime/linux/fake_input_method_context.h"
namespace ui {
FakeInputMethodContext::FakeInputMethodContext() = default;
// Overriden from ui::LinuxInputMethodContext
bool FakeInputMethodContext::DispatchKeyEvent(
const ui::KeyEvent& /* key_event */) {
return false;
}
bool FakeInputMethodContext::IsPeekKeyEvent(const ui::KeyEvent& key_event) {
return false;
}
void FakeInputMethodContext::Reset() {}
void FakeInputMethodContext::UpdateFocus(
bool has_client,
TextInputType old_type,
const TextInputClientAttributes& new_client_attributes,
TextInputClient::FocusReason reason) {}
void FakeInputMethodContext::SetCursorLocation(const gfx::Rect& rect) {}
void FakeInputMethodContext::SetSurroundingText(
const std::u16string& text,
const gfx::Range& text_range,
const gfx::Range& composition_range,
const gfx::Range& selection_range) {}
VirtualKeyboardController*
FakeInputMethodContext::GetVirtualKeyboardController() {
return nullptr;
}
} // namespace ui