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