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

Side by Side Diff: ui/base/test/dummy_input_method.cc

Issue 16024014: Move DummyInputMethod into ui/base/ime/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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/test/dummy_input_method.h ('k') | ui/ui_unittests.gypi » ('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 (c) 2012 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/test/dummy_input_method.h"
6
7 namespace ui {
8 namespace test {
9
10 DummyInputMethod::DummyInputMethod() {
11 }
12
13 DummyInputMethod::~DummyInputMethod() {
14 }
15
16 void DummyInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {
17 }
18
19 void DummyInputMethod::Init(bool focused) {
20 }
21
22 void DummyInputMethod::OnFocus() {
23 }
24
25 void DummyInputMethod::OnBlur() {
26 }
27
28 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
29 }
30
31 TextInputClient* DummyInputMethod::GetTextInputClient() const {
32 return NULL;
33 }
34
35 bool DummyInputMethod::DispatchKeyEvent(const base::NativeEvent& event) {
36 return false;
37 }
38
39 bool DummyInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) {
40 return false;
41 }
42
43 void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) {
44 }
45
46 void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) {
47 }
48
49 void DummyInputMethod::CancelComposition(const TextInputClient* client) {
50 }
51
52 std::string DummyInputMethod::GetInputLocale() {
53 return std::string();
54 }
55
56 base::i18n::TextDirection DummyInputMethod::GetInputTextDirection() {
57 return base::i18n::UNKNOWN_DIRECTION;
58 }
59
60 bool DummyInputMethod::IsActive() {
61 return true;
62 }
63
64 TextInputType DummyInputMethod::GetTextInputType() const {
65 return TEXT_INPUT_TYPE_NONE;
66 }
67
68 bool DummyInputMethod::CanComposeInline() const {
69 return true;
70 }
71
72 void DummyInputMethod::AddObserver(InputMethodObserver* observer) {
73 }
74
75 void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) {
76 }
77
78 } // namespace test
79 } // namespace ui
80
OLDNEW
« no previous file with comments | « ui/base/test/dummy_input_method.h ('k') | ui/ui_unittests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698