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

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

Issue 1234193002: Simplify InputMethodWin initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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/mock_input_method.h" 5 #include "ui/base/ime/mock_input_method.h"
6 6
7 #include "ui/base/ime/input_method_delegate.h" 7 #include "ui/base/ime/input_method_delegate.h"
8 #include "ui/events/event.h" 8 #include "ui/events/event.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void MockInputMethod::CancelComposition(const TextInputClient* client) { 77 void MockInputMethod::CancelComposition(const TextInputClient* client) {
78 } 78 }
79 79
80 void MockInputMethod::OnInputLocaleChanged() { 80 void MockInputMethod::OnInputLocaleChanged() {
81 } 81 }
82 82
83 std::string MockInputMethod::GetInputLocale() { 83 std::string MockInputMethod::GetInputLocale() {
84 return ""; 84 return "";
85 } 85 }
86 86
87 bool MockInputMethod::IsActive() {
88 return true;
89 }
90
91 TextInputType MockInputMethod::GetTextInputType() const { 87 TextInputType MockInputMethod::GetTextInputType() const {
92 return TEXT_INPUT_TYPE_NONE; 88 return TEXT_INPUT_TYPE_NONE;
93 } 89 }
94 90
95 TextInputMode MockInputMethod::GetTextInputMode() const { 91 TextInputMode MockInputMethod::GetTextInputMode() const {
96 return TEXT_INPUT_MODE_DEFAULT; 92 return TEXT_INPUT_MODE_DEFAULT;
97 } 93 }
98 94
99 int MockInputMethod::GetTextInputFlags() const { 95 int MockInputMethod::GetTextInputFlags() const {
100 return 0; 96 return 0;
(...skipping 13 matching lines...) Expand all
114 110
115 void MockInputMethod::AddObserver(InputMethodObserver* observer) { 111 void MockInputMethod::AddObserver(InputMethodObserver* observer) {
116 observer_list_.AddObserver(observer); 112 observer_list_.AddObserver(observer);
117 } 113 }
118 114
119 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 115 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
120 observer_list_.RemoveObserver(observer); 116 observer_list_.RemoveObserver(observer);
121 } 117 }
122 118
123 } // namespace ui 119 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698