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

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

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace ui { 7 namespace ui {
8 8
9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) 9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate)
10 : text_input_client_(NULL) { 10 : text_input_client_(NULL) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 bool MockInputMethod::CanComposeInline() const { 96 bool MockInputMethod::CanComposeInline() const {
97 return true; 97 return true;
98 } 98 }
99 99
100 bool MockInputMethod::IsCandidatePopupOpen() const { 100 bool MockInputMethod::IsCandidatePopupOpen() const {
101 return false; 101 return false;
102 } 102 }
103 103
104 void MockInputMethod::ShowImeIfNeeded() {
105 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded());
106 }
107
104 void MockInputMethod::AddObserver(InputMethodObserver* observer) { 108 void MockInputMethod::AddObserver(InputMethodObserver* observer) {
105 observer_list_.AddObserver(observer); 109 observer_list_.AddObserver(observer);
106 } 110 }
107 111
108 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 112 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
109 observer_list_.RemoveObserver(observer); 113 observer_list_.RemoveObserver(observer);
110 } 114 }
111 115
112 } // namespace ui 116 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698