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

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

Issue 1615073005: Revert of Makes sure the keyboard typing isn't blocked when InputMethod::OnFocus() is not correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/ime/ui_base_ime.gyp » ('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 #include "ui/base/ime/input_method_delegate.h" 7 #include "ui/base/ime/input_method_delegate.h"
8 #include "ui/base/ime/input_method_log_collector.h"
9 #include "ui/events/event.h" 8 #include "ui/events/event.h"
10 9
11 namespace ui { 10 namespace ui {
12 11
13 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) 12 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate)
14 : text_input_client_(NULL), delegate_(delegate) { 13 : text_input_client_(NULL), delegate_(delegate) {
15 } 14 }
16 15
17 MockInputMethod::~MockInputMethod() { 16 MockInputMethod::~MockInputMethod() {
18 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, 17 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 109 }
111 110
112 void MockInputMethod::AddObserver(InputMethodObserver* observer) { 111 void MockInputMethod::AddObserver(InputMethodObserver* observer) {
113 observer_list_.AddObserver(observer); 112 observer_list_.AddObserver(observer);
114 } 113 }
115 114
116 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 115 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
117 observer_list_.RemoveObserver(observer); 116 observer_list_.RemoveObserver(observer);
118 } 117 }
119 118
120 InputMethodLogCollector* MockInputMethod::GetLogCollector() {
121 return nullptr;
122 }
123
124 } // namespace ui 119 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/ime/ui_base_ime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698