1 // Copyright 2014 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/views/ime/null_input_method.h" 6 7 namespace views { 8 NullInputMethod()9NullInputMethod::NullInputMethod() {} 10 SetDelegate(internal::InputMethodDelegate *)11void NullInputMethod::SetDelegate( 12 internal::InputMethodDelegate* /* delegate */) {} 13 Init(Widget *)14void NullInputMethod::Init(Widget* /* widget */) {} 15 OnFocus()16void NullInputMethod::OnFocus() {} 17 OnBlur()18void NullInputMethod::OnBlur() {} 19 OnUntranslatedIMEMessage(const base::NativeEvent &,NativeEventResult *)20bool NullInputMethod::OnUntranslatedIMEMessage( 21 const base::NativeEvent& /* event */, 22 NativeEventResult* /* result */) { 23 return false; 24 } 25 DispatchKeyEvent(const ui::KeyEvent &)26void NullInputMethod::DispatchKeyEvent(const ui::KeyEvent& /* key */) {} 27 OnTextInputTypeChanged(View *)28void NullInputMethod::OnTextInputTypeChanged(View* /* view */) {} 29 OnCaretBoundsChanged(View *)30void NullInputMethod::OnCaretBoundsChanged(View* /* view */) {} 31 CancelComposition(View *)32void NullInputMethod::CancelComposition(View* /* view */) {} 33 OnInputLocaleChanged()34void NullInputMethod::OnInputLocaleChanged() {} 35 GetInputLocale()36std::string NullInputMethod::GetInputLocale() { 37 return std::string(); 38 } 39 IsActive()40bool NullInputMethod::IsActive() { 41 return false; 42 } 43 GetTextInputClient() const44ui::TextInputClient* NullInputMethod::GetTextInputClient() const { 45 return NULL; 46 } 47 GetTextInputType() const48ui::TextInputType NullInputMethod::GetTextInputType() const { 49 return ui::TEXT_INPUT_TYPE_NONE; 50 } 51 IsCandidatePopupOpen() const52bool NullInputMethod::IsCandidatePopupOpen() const { 53 return false; 54 } 55 ShowImeIfNeeded()56void NullInputMethod::ShowImeIfNeeded() {} 57 IsMock() const58bool NullInputMethod::IsMock() const { 59 return false; 60 } 61 62 } // namespace views 63