blob: 37c0656f112c8dac748c440f72f104b41d685904 [file] [log] [blame]
// Copyright (c) 2012 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.
#ifndef CHROME_BROWSER_ASH_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
#define CHROME_BROWSER_ASH_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/base/ime/ash/input_method_delegate.h"
namespace ash {
namespace input_method {
// Accesses the hardware keyboard layout and application locale from the
// BrowserProcess.
class InputMethodDelegateImpl : public InputMethodDelegate {
public:
InputMethodDelegateImpl();
InputMethodDelegateImpl(const InputMethodDelegateImpl&) = delete;
InputMethodDelegateImpl& operator=(const InputMethodDelegateImpl&) = delete;
~InputMethodDelegateImpl() override;
// InputMethodDelegate implementation.
std::string GetHardwareKeyboardLayouts() const override;
std::u16string GetLocalizedString(int resource_id) const override;
std::u16string GetDisplayLanguageName(
const std::string& language_code) const override;
void SetHardwareKeyboardLayoutForTesting(const std::string& layout) override;
};
} // namespace input_method
} // namespace ash
#endif // CHROME_BROWSER_ASH_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_