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

Unified Diff: ui/base/ime/input_method_base.cc

Issue 826713002: [ChromeOS] Show autofill popup after keyboard (if any) is shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/input_method_base.cc
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc
index 0dca37870e5ed3c2fc8e4a6645db78ed1db7742b..ad6a9108b36c5e3b7796e48773eedb52f306a1f5 100644
--- a/ui/base/ime/input_method_base.cc
+++ b/ui/base/ime/input_method_base.cc
@@ -19,7 +19,8 @@ namespace ui {
InputMethodBase::InputMethodBase()
: delegate_(NULL),
text_input_client_(NULL),
- system_toplevel_window_focused_(false) {
+ system_toplevel_window_focused_(false),
+ on_screen_keyboard_supported_(false) {
}
InputMethodBase::~InputMethodBase() {
@@ -94,6 +95,19 @@ void InputMethodBase::ShowImeIfNeeded() {
FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded());
}
+void InputMethodBase::SetSupportsOnScreenKeyboard(bool supported) {
+ on_screen_keyboard_supported_ = supported;
+}
+
+bool InputMethodBase::SupportsOnScreenKeyboard() const {
+ return on_screen_keyboard_supported_;
+}
+
+void InputMethodBase::OnKeyboardBoundsUnchanged() {
+ FOR_EACH_OBSERVER(InputMethodObserver, observer_list_,
+ OnKeyboardBoundsUnchanged());
+}
+
void InputMethodBase::AddObserver(InputMethodObserver* observer) {
observer_list_.AddObserver(observer);
}

Powered by Google App Engine
This is Rietveld 408576698