Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 9 NullInputMethod::NullInputMethod() {} | |
| 10 | |
| 11 void NullInputMethod::SetDelegate( | |
| 12 internal::InputMethodDelegate* /* delegate */) {} | |
| 13 | |
| 14 void NullInputMethod::Init(Widget* /* widget */) {} | |
| 15 | |
| 16 void NullInputMethod::OnFocus() {} | |
| 17 | |
| 18 void NullInputMethod::OnBlur() {} | |
| 19 | |
| 20 bool NullInputMethod::OnUntranslatedIMEMessage( | |
| 21 const base::NativeEvent& /* event */, NativeEventResult* /* result */) { | |
|
msw
2014/03/11 00:58:50
nit: one parameter per line.
Yuki
2014/03/11 15:27:37
Done.
| |
| 22 return false; | |
| 23 } | |
| 24 | |
| 25 void NullInputMethod::DispatchKeyEvent(const ui::KeyEvent& /* key */) {} | |
| 26 | |
| 27 void NullInputMethod::OnTextInputTypeChanged(View* /* view */) {} | |
| 28 | |
| 29 void NullInputMethod::OnCaretBoundsChanged(View* /* view */) {} | |
| 30 | |
| 31 void NullInputMethod::CancelComposition(View* /* view */) {} | |
| 32 | |
| 33 void NullInputMethod::OnInputLocaleChanged() {} | |
| 34 | |
| 35 std::string NullInputMethod::GetInputLocale() { | |
| 36 return ""; | |
|
msw
2014/03/11 00:58:50
nit: return std::string();
Yuki
2014/03/11 15:27:37
Done.
| |
| 37 } | |
| 38 | |
| 39 bool NullInputMethod::IsActive() { | |
| 40 return false; | |
| 41 } | |
| 42 | |
| 43 ui::TextInputClient* NullInputMethod::GetTextInputClient() const { | |
| 44 return NULL; | |
| 45 } | |
| 46 | |
| 47 ui::TextInputType NullInputMethod::GetTextInputType() const { | |
| 48 return ui::TEXT_INPUT_TYPE_NONE; | |
| 49 } | |
| 50 | |
| 51 bool NullInputMethod::IsCandidatePopupOpen() const { | |
| 52 return false; | |
| 53 } | |
| 54 | |
| 55 void NullInputMethod::ShowImeIfNeeded() {} | |
| 56 | |
| 57 bool NullInputMethod::IsMock() const { | |
| 58 return false; | |
| 59 } | |
| 60 | |
| 61 } // namespace views | |
| OLD | NEW |