Add renderbuffer BGRA8 format extension and support in cmd buffer for desktop GL...
[chromium-blink-merge.git] / chromeos / ime / fake_input_method_delegate.cc
blobb3642608bbfe892ad1f907f3c645e9bbbe861f93
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/ime/fake_input_method_delegate.h"
7 namespace chromeos {
8 namespace input_method {
10 FakeInputMethodDelegate::FakeInputMethodDelegate()
11 : active_locale_("en") {
14 FakeInputMethodDelegate::~FakeInputMethodDelegate() {
17 std::string FakeInputMethodDelegate::GetHardwareKeyboardLayout() const {
18 return hardware_keyboard_layout_;
21 string16 FakeInputMethodDelegate::GetLocalizedString(int resource_id) const {
22 if (!get_localized_string_callback_.is_null())
23 return get_localized_string_callback_.Run(resource_id);
24 return string16();
27 string16 FakeInputMethodDelegate::GetDisplayLanguageName(
28 const std::string& language_code) const {
29 if (!get_display_language_name_callback_.is_null())
30 return get_display_language_name_callback_.Run(language_code);
31 return string16();
34 } // namespace input_method
35 } // namespace chromeos