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

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

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed from IsPopupOpen() to IsCandidatePopupOpen(). 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 base::i18n::TextDirection FakeInputMethod::GetInputTextDirection() { 132 base::i18n::TextDirection FakeInputMethod::GetInputTextDirection() {
133 return base::i18n::UNKNOWN_DIRECTION; 133 return base::i18n::UNKNOWN_DIRECTION;
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 {
141 return false;
142 }
143
140 ui::TextInputType FakeInputMethod::GetTextInputType() const { 144 ui::TextInputType FakeInputMethod::GetTextInputType() const {
141 return ui::TEXT_INPUT_TYPE_NONE; 145 return ui::TEXT_INPUT_TYPE_NONE;
142 } 146 }
143 147
144 bool FakeInputMethod::CanComposeInline() const { 148 bool FakeInputMethod::CanComposeInline() const {
145 return true; 149 return true;
146 } 150 }
147 151
148 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { 152 void FakeInputMethod::AddObserver(InputMethodObserver* observer) {
149 observers_.AddObserver(observer); 153 observers_.AddObserver(observer);
150 } 154 }
151 155
152 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { 156 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) {
153 observers_.RemoveObserver(observer); 157 observers_.RemoveObserver(observer);
154 } 158 }
155 159
156 } // namespace ui 160 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698