#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
#include <string>
#include "ui/events/event_constants.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes/dom/dom_key.h"
#include "ui/events/keycodes/keyboard_code_conversion.h"
namespace ui {
StubKeyboardLayoutEngine::StubKeyboardLayoutEngine() = default;
StubKeyboardLayoutEngine::~StubKeyboardLayoutEngine() = default;
std::string_view StubKeyboardLayoutEngine::GetLayoutName() const { … }
bool StubKeyboardLayoutEngine::CanSetCurrentLayout() const { … }
void StubKeyboardLayoutEngine::SetCurrentLayoutByName(
const std::string& layout_name,
base::OnceCallback<void(bool)> callback) { … }
bool StubKeyboardLayoutEngine::SetCurrentLayoutFromBuffer(
const char* keymap_str,
size_t size) { … }
bool StubKeyboardLayoutEngine::UsesISOLevel5Shift() const { … }
bool StubKeyboardLayoutEngine::UsesAltGr() const { … }
bool StubKeyboardLayoutEngine::Lookup(DomCode dom_code,
int flags,
DomKey* out_dom_key,
KeyboardCode* out_key_code) const { … }
void StubKeyboardLayoutEngine::SetInitCallbackForTest(
base::OnceClosure closure) { … }
void StubKeyboardLayoutEngine::SetCustomLookupTableForTesting(
const std::vector<CustomLookupEntry>& table) { … }
}