Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / views / ime / null_input_method.cc
blob666d6cfba39c2778caabaa8c42b3fe51bd362aa7
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.
5 #include "ui/views/ime/null_input_method.h"
7 namespace views {
9 NullInputMethod::NullInputMethod() {}
11 void NullInputMethod::SetDelegate(
12 internal::InputMethodDelegate* /* delegate */) {}
14 void NullInputMethod::Init(Widget* /* widget */) {}
16 void NullInputMethod::OnFocus() {}
18 void NullInputMethod::OnBlur() {}
20 bool NullInputMethod::OnUntranslatedIMEMessage(
21 const base::NativeEvent& /* event */,
22 NativeEventResult* /* result */) {
23 return false;
26 void NullInputMethod::DispatchKeyEvent(const ui::KeyEvent& /* key */) {}
28 void NullInputMethod::OnTextInputTypeChanged(View* /* view */) {}
30 void NullInputMethod::OnCaretBoundsChanged(View* /* view */) {}
32 void NullInputMethod::CancelComposition(View* /* view */) {}
34 void NullInputMethod::OnInputLocaleChanged() {}
36 std::string NullInputMethod::GetInputLocale() {
37 return std::string();
40 bool NullInputMethod::IsActive() {
41 return false;
44 ui::TextInputClient* NullInputMethod::GetTextInputClient() const {
45 return NULL;
48 ui::TextInputType NullInputMethod::GetTextInputType() const {
49 return ui::TEXT_INPUT_TYPE_NONE;
52 bool NullInputMethod::IsCandidatePopupOpen() const {
53 return false;
56 void NullInputMethod::ShowImeIfNeeded() {}
58 bool NullInputMethod::IsMock() const {
59 return false;
62 } // namespace views