Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / base / ime / dummy_text_input_client.cc
blob2cd2dc7124f1afa4c1c28a54933bbb2c040f2915
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.
5 #include "ui/base/ime/dummy_text_input_client.h"
6 #include "ui/gfx/geometry/rect.h"
8 namespace ui {
10 DummyTextInputClient::DummyTextInputClient()
11 : text_input_type_(TEXT_INPUT_TYPE_NONE) {}
13 DummyTextInputClient::DummyTextInputClient(TextInputType text_input_type)
14 : text_input_type_(text_input_type) {}
16 DummyTextInputClient::~DummyTextInputClient() {
19 void DummyTextInputClient::SetCompositionText(
20 const CompositionText& composition) {
23 void DummyTextInputClient::ConfirmCompositionText() {
26 void DummyTextInputClient::ClearCompositionText() {
29 void DummyTextInputClient::InsertText(const base::string16& text) {
32 void DummyTextInputClient::InsertChar(base::char16 ch, int flags) {
35 gfx::NativeWindow DummyTextInputClient::GetAttachedWindow() const {
36 return NULL;
39 TextInputType DummyTextInputClient::GetTextInputType() const {
40 return text_input_type_;
43 TextInputMode DummyTextInputClient::GetTextInputMode() const {
44 return TEXT_INPUT_MODE_DEFAULT;
47 int DummyTextInputClient::GetTextInputFlags() const {
48 return 0;
51 bool DummyTextInputClient::CanComposeInline() const {
52 return false;
55 gfx::Rect DummyTextInputClient::GetCaretBounds() const {
56 return gfx::Rect();
59 bool DummyTextInputClient::GetCompositionCharacterBounds(
60 uint32 index,
61 gfx::Rect* rect) const {
62 return false;
65 bool DummyTextInputClient::HasCompositionText() const {
66 return false;
69 bool DummyTextInputClient::GetTextRange(gfx::Range* range) const {
70 return false;
73 bool DummyTextInputClient::GetCompositionTextRange(gfx::Range* range) const {
74 return false;
77 bool DummyTextInputClient::GetSelectionRange(gfx::Range* range) const {
78 return false;
81 bool DummyTextInputClient::SetSelectionRange(const gfx::Range& range) {
82 return false;
85 bool DummyTextInputClient::DeleteRange(const gfx::Range& range) {
86 return false;
89 bool DummyTextInputClient::GetTextFromRange(const gfx::Range& range,
90 base::string16* text) const {
91 return false;
94 void DummyTextInputClient::OnInputMethodChanged() {
97 bool DummyTextInputClient::ChangeTextDirectionAndLayoutAlignment(
98 base::i18n::TextDirection direction) {
99 return false;
102 void DummyTextInputClient::ExtendSelectionAndDelete(size_t before,
103 size_t after) {
106 void DummyTextInputClient::EnsureCaretInRect(const gfx::Rect& rect) {
109 void DummyTextInputClient::OnCandidateWindowShown() {
112 void DummyTextInputClient::OnCandidateWindowUpdated() {
115 void DummyTextInputClient::OnCandidateWindowHidden() {
118 bool DummyTextInputClient::IsEditCommandEnabled(int command_id) {
119 return false;
122 void DummyTextInputClient::SetEditCommandForNextKeyEvent(int command_id) {
125 } // namespace ui