This source file includes following definitions.
- input_view_url_
- GetPreferredKeyboardLayout
#include "chromeos/ime/input_method_descriptor.h"
#include <sstream>
#include "base/logging.h"
#include "base/strings/string_split.h"
#include "url/gurl.h"
namespace chromeos {
namespace input_method {
InputMethodDescriptor::InputMethodDescriptor(
const std::string& id,
const std::string& name,
const std::string& indicator,
const std::vector<std::string>& keyboard_layouts,
const std::vector<std::string>& language_codes,
bool is_login_keyboard,
const GURL& options_page_url,
const GURL& input_view_url)
: id_(id),
name_(name),
keyboard_layouts_(keyboard_layouts),
language_codes_(language_codes),
indicator_(indicator),
is_login_keyboard_(is_login_keyboard),
options_page_url_(options_page_url),
input_view_url_(input_view_url) {
}
std::string InputMethodDescriptor::GetPreferredKeyboardLayout() const {
return keyboard_layouts_.empty() ? "us" : keyboard_layouts_[0];
}
InputMethodDescriptor::InputMethodDescriptor() {
}
InputMethodDescriptor::~InputMethodDescriptor() {
}
}
}