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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix existing tests and add some more. Created 6 years 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/text_input_focus_manager.h" 7 #include "ui/base/ime/text_input_focus_manager.h"
8 #include "ui/base/ui_base_switches_util.h" 8 #include "ui/base/ui_base_switches_util.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 bool MockInputMethod::IsCandidatePopupOpen() const { 113 bool MockInputMethod::IsCandidatePopupOpen() const {
114 return false; 114 return false;
115 } 115 }
116 116
117 void MockInputMethod::ShowImeIfNeeded() { 117 void MockInputMethod::ShowImeIfNeeded() {
118 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded()); 118 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded());
119 } 119 }
120 120
121 void MockInputMethod::SetSupportsOnScreenKeyboard(bool supports) {
122 }
123
124 bool MockInputMethod::SupportsOnScreenKeyboard() const {
125 return false;
126 }
127
121 void MockInputMethod::AddObserver(InputMethodObserver* observer) { 128 void MockInputMethod::AddObserver(InputMethodObserver* observer) {
122 observer_list_.AddObserver(observer); 129 observer_list_.AddObserver(observer);
123 } 130 }
124 131
125 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 132 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
126 observer_list_.RemoveObserver(observer); 133 observer_list_.RemoveObserver(observer);
127 } 134 }
128 135
129 } // namespace ui 136 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698