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