Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / base / ime / dummy_text_input_client.cc
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
10 DummyTextInputClient::DummyTextInputClient()
11     : text_input_type_(TEXT_INPUT_TYPE_NONE) {}
12
13 DummyTextInputClient::DummyTextInputClient(TextInputType text_input_type)
14     : text_input_type_(text_input_type) {}
15
16 DummyTextInputClient::~DummyTextInputClient() {
17 }
18
19 void DummyTextInputClient::SetCompositionText(
20     const CompositionText& composition) {
21 }
22
23 void DummyTextInputClient::ConfirmCompositionText() {
24 }
25
26 void DummyTextInputClient::ClearCompositionText() {
27 }
28
29 void DummyTextInputClient::InsertText(const base::string16& text) {
30 }
31
32 void DummyTextInputClient::InsertChar(base::char16 ch, int flags) {
33 }
34
35 gfx::NativeWindow DummyTextInputClient::GetAttachedWindow() const {
36   return NULL;
37 }
38
39 TextInputType DummyTextInputClient::GetTextInputType() const {
40   return text_input_type_;
41 }
42
43 TextInputMode DummyTextInputClient::GetTextInputMode() const {
44   return TEXT_INPUT_MODE_DEFAULT;
45 }
46
47 int DummyTextInputClient::GetTextInputFlags() const {
48   return 0;
49 }
50
51 bool DummyTextInputClient::CanComposeInline() const {
52   return false;
53 }
54
55 gfx::Rect DummyTextInputClient::GetCaretBounds() const {
56   return gfx::Rect();
57 }
58
59 bool DummyTextInputClient::GetCompositionCharacterBounds(
60     uint32 index,
61     gfx::Rect* rect) const {
62   return false;
63 }
64
65 bool DummyTextInputClient::HasCompositionText() const {
66   return false;
67 }
68
69 bool DummyTextInputClient::GetTextRange(gfx::Range* range) const {
70   return false;
71 }
72
73 bool DummyTextInputClient::GetCompositionTextRange(gfx::Range* range) const {
74   return false;
75 }
76
77 bool DummyTextInputClient::GetSelectionRange(gfx::Range* range) const {
78   return false;
79 }
80
81 bool DummyTextInputClient::SetSelectionRange(const gfx::Range& range) {
82   return false;
83 }
84
85 bool DummyTextInputClient::DeleteRange(const gfx::Range& range) {
86   return false;
87 }
88
89 bool DummyTextInputClient::GetTextFromRange(const gfx::Range& range,
90                                             base::string16* text) const {
91   return false;
92 }
93
94 void DummyTextInputClient::OnInputMethodChanged() {
95 }
96
97 bool DummyTextInputClient::ChangeTextDirectionAndLayoutAlignment(
98     base::i18n::TextDirection direction) {
99   return false;
100 }
101
102 void DummyTextInputClient::ExtendSelectionAndDelete(size_t before,
103                                                     size_t after) {
104 }
105
106 void DummyTextInputClient::EnsureCaretInRect(const gfx::Rect& rect)  {
107 }
108
109 void DummyTextInputClient::OnCandidateWindowShown() {
110 }
111
112 void DummyTextInputClient::OnCandidateWindowUpdated() {
113 }
114
115 void DummyTextInputClient::OnCandidateWindowHidden() {
116 }
117
118 bool DummyTextInputClient::IsEditingCommandEnabled(int command_id) {
119   return false;
120 }
121
122 void DummyTextInputClient::ExecuteEditingCommand(int command_id) {
123 }
124
125 }  // namespace ui