dummy_input_method.cc revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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 base::NativeEvent& event) { 43 return false; 44} 45 46bool DummyInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) { 47 return false; 48} 49 50void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) { 51} 52 53void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) { 54} 55 56void DummyInputMethod::CancelComposition(const TextInputClient* client) { 57} 58 59void DummyInputMethod::OnInputLocaleChanged() { 60} 61 62std::string DummyInputMethod::GetInputLocale() { 63 return std::string(); 64} 65 66base::i18n::TextDirection DummyInputMethod::GetInputTextDirection() { 67 return base::i18n::UNKNOWN_DIRECTION; 68} 69 70bool DummyInputMethod::IsActive() { 71 return true; 72} 73 74TextInputType DummyInputMethod::GetTextInputType() const { 75 return TEXT_INPUT_TYPE_NONE; 76} 77 78TextInputMode DummyInputMethod::GetTextInputMode() const { 79 return TEXT_INPUT_MODE_DEFAULT; 80} 81 82bool DummyInputMethod::CanComposeInline() const { 83 return true; 84} 85 86bool DummyInputMethod::IsCandidatePopupOpen() const { 87 return false; 88} 89 90void DummyInputMethod::AddObserver(InputMethodObserver* observer) { 91} 92 93void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) { 94} 95 96} // namespace ui 97 98