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

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

Issue 23751002: Add InputMethod::GetTextInputMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/fake_input_method.h ('k') | ui/base/ime/input_method.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/base/ime/fake_input_method.h" 5 #include "ui/base/ime/fake_input_method.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/base/events/event.h" 9 #include "ui/base/events/event.h"
10 #include "ui/base/events/event_constants.h" 10 #include "ui/base/events/event_constants.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 bool FakeInputMethod::IsActive() { 136 bool FakeInputMethod::IsActive() {
137 return true; 137 return true;
138 } 138 }
139 139
140 bool FakeInputMethod::IsCandidatePopupOpen() const { 140 bool FakeInputMethod::IsCandidatePopupOpen() const {
141 return false; 141 return false;
142 } 142 }
143 143
144 ui::TextInputType FakeInputMethod::GetTextInputType() const { 144 TextInputType FakeInputMethod::GetTextInputType() const {
145 return ui::TEXT_INPUT_TYPE_NONE; 145 return TEXT_INPUT_TYPE_NONE;
146 }
147
148 TextInputMode FakeInputMethod::GetTextInputMode() const {
149 return TEXT_INPUT_MODE_DEFAULT;
146 } 150 }
147 151
148 bool FakeInputMethod::CanComposeInline() const { 152 bool FakeInputMethod::CanComposeInline() const {
149 return true; 153 return true;
150 } 154 }
151 155
152 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { 156 void FakeInputMethod::AddObserver(InputMethodObserver* observer) {
153 observers_.AddObserver(observer); 157 observers_.AddObserver(observer);
154 } 158 }
155 159
156 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { 160 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) {
157 observers_.RemoveObserver(observer); 161 observers_.RemoveObserver(observer);
158 } 162 }
159 163
160 } // namespace ui 164 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/fake_input_method.h ('k') | ui/base/ime/input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698