Add ICU message format support
[chromium-blink-merge.git] / ui / base / ime / dummy_input_method.cc
blob186db86716eb1169a002e3a5c2638650846bbb6b
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 "ui/base/ime/dummy_input_method.h"
7 namespace ui {
9 DummyInputMethod::DummyInputMethod() {
12 DummyInputMethod::~DummyInputMethod() {
15 void DummyInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {
18 void DummyInputMethod::OnFocus() {
21 void DummyInputMethod::OnBlur() {
24 bool DummyInputMethod::OnUntranslatedIMEMessage(const base::NativeEvent& event,
25 NativeEventResult* result) {
26 return false;
29 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
32 void DummyInputMethod::DetachTextInputClient(TextInputClient* client) {
35 TextInputClient* DummyInputMethod::GetTextInputClient() const {
36 return NULL;
39 void DummyInputMethod::DispatchKeyEvent(ui::KeyEvent* event) {
42 void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) {
45 void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) {
48 void DummyInputMethod::CancelComposition(const TextInputClient* client) {
51 void DummyInputMethod::OnInputLocaleChanged() {
54 std::string DummyInputMethod::GetInputLocale() {
55 return std::string();
58 TextInputType DummyInputMethod::GetTextInputType() const {
59 return TEXT_INPUT_TYPE_NONE;
62 TextInputMode DummyInputMethod::GetTextInputMode() const {
63 return TEXT_INPUT_MODE_DEFAULT;
66 int DummyInputMethod::GetTextInputFlags() const {
67 return 0;
70 bool DummyInputMethod::CanComposeInline() const {
71 return true;
74 bool DummyInputMethod::IsCandidatePopupOpen() const {
75 return false;
78 void DummyInputMethod::ShowImeIfNeeded() {
81 void DummyInputMethod::AddObserver(InputMethodObserver* observer) {
84 void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) {
87 } // namespace ui