Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: ui/base/ime/dummy_text_input_client.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/dummy_text_input_client.h ('k') | ui/base/ime/infolist_entry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 bool DummyTextInputClient::CanComposeInline() const {
48 return false;
49 }
50
51 gfx::Rect DummyTextInputClient::GetCaretBounds() const {
52 return gfx::Rect();
53 }
54
55 bool DummyTextInputClient::GetCompositionCharacterBounds(
56 uint32 index,
57 gfx::Rect* rect) const {
58 return false;
59 }
60
61 bool DummyTextInputClient::HasCompositionText() const {
62 return false;
63 }
64
65 bool DummyTextInputClient::GetTextRange(gfx::Range* range) const {
66 return false;
67 }
68
69 bool DummyTextInputClient::GetCompositionTextRange(gfx::Range* range) const {
70 return false;
71 }
72
73 bool DummyTextInputClient::GetSelectionRange(gfx::Range* range) const {
74 return false;
75 }
76
77 bool DummyTextInputClient::SetSelectionRange(const gfx::Range& range) {
78 return false;
79 }
80
81 bool DummyTextInputClient::DeleteRange(const gfx::Range& range) {
82 return false;
83 }
84
85 bool DummyTextInputClient::GetTextFromRange(const gfx::Range& range,
86 base::string16* text) const {
87 return false;
88 }
89
90 void DummyTextInputClient::OnInputMethodChanged() {
91 }
92
93 bool DummyTextInputClient::ChangeTextDirectionAndLayoutAlignment(
94 base::i18n::TextDirection direction) {
95 return false;
96 }
97
98 void DummyTextInputClient::ExtendSelectionAndDelete(size_t before,
99 size_t after) {
100 }
101
102 void DummyTextInputClient::EnsureCaretInRect(const gfx::Rect& rect) {
103 }
104
105 void DummyTextInputClient::OnCandidateWindowShown() {
106 }
107
108 void DummyTextInputClient::OnCandidateWindowUpdated() {
109 }
110
111 void DummyTextInputClient::OnCandidateWindowHidden() {
112 }
113
114 bool DummyTextInputClient::IsEditingCommandEnabled(int command_id) {
115 return false;
116 }
117
118 void DummyTextInputClient::ExecuteEditingCommand(int command_id) {
119 }
120
121 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/dummy_text_input_client.h ('k') | ui/base/ime/infolist_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698