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.
4
5#include "ui/base/ime/dummy_input_method.h"
6
7namespace ui {
8
9DummyInputMethod::DummyInputMethod() {
10}
11
12DummyInputMethod::~DummyInputMethod() {
13}
14
15void DummyInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {
16}
17
18void DummyInputMethod::Init(bool focused) {
19}
20
21void DummyInputMethod::OnFocus() {
22}
23
24void DummyInputMethod::OnBlur() {
25}
26
27bool DummyInputMethod::OnUntranslatedIMEMessage(const base::NativeEvent& event,
28                                                NativeEventResult* result) {
29  return false;
30}
31
32void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
33}
34
35void DummyInputMethod::DetachTextInputClient(TextInputClient* client) {
36}
37
38TextInputClient* DummyInputMethod::GetTextInputClient() const {
39  return NULL;
40}
41
42bool DummyInputMethod::DispatchKeyEvent(const ui::KeyEvent& event) {
43  return false;
44}
45
46void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) {
47}
48
49void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) {
50}
51
52void DummyInputMethod::CancelComposition(const TextInputClient* client) {
53}
54
55void DummyInputMethod::OnInputLocaleChanged() {
56}
57
58std::string DummyInputMethod::GetInputLocale() {
59  return std::string();
60}
61
62bool DummyInputMethod::IsActive() {
63  return true;
64}
65
66TextInputType DummyInputMethod::GetTextInputType() const {
67  return TEXT_INPUT_TYPE_NONE;
68}
69
70TextInputMode DummyInputMethod::GetTextInputMode() const {
71  return TEXT_INPUT_MODE_DEFAULT;
72}
73
74bool DummyInputMethod::CanComposeInline() const {
75  return true;
76}
77
78bool DummyInputMethod::IsCandidatePopupOpen() const {
79  return false;
80}
81
82void DummyInputMethod::ShowImeIfNeeded() {
83}
84
85void DummyInputMethod::AddObserver(InputMethodObserver* observer) {
86}
87
88void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) {
89}
90
91}  // namespace ui
92