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_text_input_client.h" 6 #include "ui/gfx/rect.h" 7 8 namespace ui { 9 DummyTextInputClient()10DummyTextInputClient::DummyTextInputClient() { 11 } 12 ~DummyTextInputClient()13DummyTextInputClient::~DummyTextInputClient() { 14 } 15 SetCompositionText(const ui::CompositionText & composition)16void DummyTextInputClient::SetCompositionText( 17 const ui::CompositionText& composition) { 18 } 19 ConfirmCompositionText()20void DummyTextInputClient::ConfirmCompositionText() { 21 } 22 ClearCompositionText()23void DummyTextInputClient::ClearCompositionText() { 24 } 25 InsertText(const string16 & text)26void DummyTextInputClient::InsertText(const string16& text) { 27 } 28 InsertChar(char16 ch,int flags)29void DummyTextInputClient::InsertChar(char16 ch, int flags) { 30 } 31 GetAttachedWindow() const32gfx::NativeWindow DummyTextInputClient::GetAttachedWindow() const { 33 return NULL; 34 } 35 GetTextInputType() const36ui::TextInputType DummyTextInputClient::GetTextInputType() const { 37 return TEXT_INPUT_TYPE_NONE; 38 } 39 GetTextInputMode() const40ui::TextInputMode DummyTextInputClient::GetTextInputMode() const { 41 return TEXT_INPUT_MODE_DEFAULT; 42 } 43 CanComposeInline() const44bool DummyTextInputClient::CanComposeInline() const { 45 return false; 46 } 47 GetCaretBounds() const48gfx::Rect DummyTextInputClient::GetCaretBounds() const { 49 return gfx::Rect(); 50 } 51 GetCompositionCharacterBounds(uint32 index,gfx::Rect * rect) const52bool DummyTextInputClient::GetCompositionCharacterBounds( 53 uint32 index, 54 gfx::Rect* rect) const { 55 return false; 56 } 57 HasCompositionText() const58bool DummyTextInputClient::HasCompositionText() const { 59 return false; 60 } 61 GetTextRange(gfx::Range * range) const62bool DummyTextInputClient::GetTextRange(gfx::Range* range) const { 63 return false; 64 } 65 GetCompositionTextRange(gfx::Range * range) const66bool DummyTextInputClient::GetCompositionTextRange(gfx::Range* range) const { 67 return false; 68 } 69 GetSelectionRange(gfx::Range * range) const70bool DummyTextInputClient::GetSelectionRange(gfx::Range* range) const { 71 return false; 72 } 73 SetSelectionRange(const gfx::Range & range)74bool DummyTextInputClient::SetSelectionRange(const gfx::Range& range) { 75 return false; 76 } 77 DeleteRange(const gfx::Range & range)78bool DummyTextInputClient::DeleteRange(const gfx::Range& range) { 79 return false; 80 } 81 GetTextFromRange(const gfx::Range & range,string16 * text) const82bool DummyTextInputClient::GetTextFromRange(const gfx::Range& range, 83 string16* text) const { 84 return false; 85 } 86 OnInputMethodChanged()87void DummyTextInputClient::OnInputMethodChanged() { 88 } 89 ChangeTextDirectionAndLayoutAlignment(base::i18n::TextDirection direction)90bool DummyTextInputClient::ChangeTextDirectionAndLayoutAlignment( 91 base::i18n::TextDirection direction) { 92 return false; 93 } 94 ExtendSelectionAndDelete(size_t before,size_t after)95void DummyTextInputClient::ExtendSelectionAndDelete(size_t before, 96 size_t after) { 97 } 98 EnsureCaretInRect(const gfx::Rect & rect)99void DummyTextInputClient::EnsureCaretInRect(const gfx::Rect& rect) { 100 } 101 OnCandidateWindowShown()102void DummyTextInputClient::OnCandidateWindowShown() { 103 } 104 OnCandidateWindowUpdated()105void DummyTextInputClient::OnCandidateWindowUpdated() { 106 } 107 OnCandidateWindowHidden()108void DummyTextInputClient::OnCandidateWindowHidden() { 109 } 110 111 } // namespace ui 112