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